[Python-modules-commits] r8461 - in packages/sphinx/trunk/debian/patches (1 file)
dottedmag-guest at users.alioth.debian.org
dottedmag-guest at users.alioth.debian.org
Wed May 13 19:45:45 UTC 2009
Date: Wednesday, May 13, 2009 @ 19:45:45
Author: dottedmag-guest
Revision: 8461
Reverse-rerfesh patch for 0.6.x.
Modified:
packages/sphinx/trunk/debian/patches/rfind-invocation.patch
Modified: packages/sphinx/trunk/debian/patches/rfind-invocation.patch
===================================================================
--- packages/sphinx/trunk/debian/patches/rfind-invocation.patch 2009-05-13 18:45:38 UTC (rev 8460)
+++ packages/sphinx/trunk/debian/patches/rfind-invocation.patch 2009-05-13 19:45:45 UTC (rev 8461)
@@ -1,14 +1,14 @@
The patch below fixes the wrong string.rfind invocation resulted in
File "sphinx/environment .py", line 537, in warn_and_replace
TypeError: slice indices must be integers or None or have an __index__ method
---- a/sphinx/environment.py Thu Apr 09 21:38:36 2009 +0200
-+++ b/sphinx/environment.py Fri Apr 10 01:42:26 2009 -0700
-@@ -534,7 +534,7 @@
- """
- Custom decoding error handler that warns and replaces.
- """
-- linestart = error.object.rfind('\n', None, error.start)
-+ linestart = error.object.rfind('\n', 0, error.start)
- lineend = error.object.find('\n', error.start)
- if lineend == -1: lineend = len(error.object)
+--- sphinx/sphinx/environment.py.orig 2009-05-14 02:41:20.000000000 +0700
++++ sphinx/sphinx/environment.py 2009-05-14 02:41:37.000000000 +0700
+@@ -534,7 +534,7 @@
+ """
+ Custom decoding error handler that warns and replaces.
+ """
+- linestart = error.object.rfind('\n', None, error.start)
++ linestart = error.object.rfind('\n', 0, error.start)
+ lineend = error.object.find('\n', error.start)
+ if lineend == -1: lineend = len(error.object)
lineno = error.object.count('\n', 0, error.start) + 1
More information about the Python-modules-commits
mailing list