[Python-modules-commits] r8459 - in packages/sphinx/trunk/debian/patches (2 files)

dottedmag-guest at users.alioth.debian.org dottedmag-guest at users.alioth.debian.org
Wed May 13 16:50:36 UTC 2009


    Date: Wednesday, May 13, 2009 @ 16:50:36
  Author: dottedmag-guest
Revision: 8459

Added patch fixing TypeError on python-werkzeug docs.

Added:
  packages/sphinx/trunk/debian/patches/rfind-invocation.patch
Modified:
  packages/sphinx/trunk/debian/patches/series

Added: packages/sphinx/trunk/debian/patches/rfind-invocation.patch
===================================================================
--- packages/sphinx/trunk/debian/patches/rfind-invocation.patch	                        (rev 0)
+++ packages/sphinx/trunk/debian/patches/rfind-invocation.patch	2009-05-13 16:50:36 UTC (rev 8459)
@@ -0,0 +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) 
+         lineno = error.object.count('\n', 0, error.start) + 1

Modified: packages/sphinx/trunk/debian/patches/series
===================================================================
--- packages/sphinx/trunk/debian/patches/series	2009-05-13 16:25:57 UTC (rev 8458)
+++ packages/sphinx/trunk/debian/patches/series	2009-05-13 16:50:36 UTC (rev 8459)
@@ -1,3 +1,4 @@
 add_missing_sphinx-autogen.patch
 move_static_files_outside_site-packages.patch
 disable_ez_setup.patch
+rfind-invocation.patch




More information about the Python-modules-commits mailing list