[Python-modules-commits] r15067 - in packages/python-pdftools/trunk/debian (4 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Dec 12 08:22:09 UTC 2010


    Date: Sunday, December 12, 2010 @ 08:22:05
  Author: morph
Revision: 15067

* debian/patches/10_remove_version_check.patch
  - remove bogus version check; thanks to Jakub Wilk for the report;
    Closes: #606535

Added:
  packages/python-pdftools/trunk/debian/patches/
  packages/python-pdftools/trunk/debian/patches/10_remove_version_check.patch
  packages/python-pdftools/trunk/debian/patches/series
Modified:
  packages/python-pdftools/trunk/debian/changelog

Modified: packages/python-pdftools/trunk/debian/changelog
===================================================================
--- packages/python-pdftools/trunk/debian/changelog	2010-12-12 08:15:44 UTC (rev 15066)
+++ packages/python-pdftools/trunk/debian/changelog	2010-12-12 08:22:05 UTC (rev 15067)
@@ -2,8 +2,11 @@
 
   * debian/source/format
     - move to '3.0 (quilt)' source format
+  * debian/patches/10_remove_version_check.patch
+    - remove bogus version check; thanks to Jakub Wilk for the report;
+      Closes: #606535
 
- -- Sandro Tosi <morph at debian.org>  Sun, 12 Dec 2010 09:15:11 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 12 Dec 2010 09:21:12 +0100
 
 python-pdftools (0.37-2) unstable; urgency=low
 

Added: packages/python-pdftools/trunk/debian/patches/10_remove_version_check.patch
===================================================================
--- packages/python-pdftools/trunk/debian/patches/10_remove_version_check.patch	                        (rev 0)
+++ packages/python-pdftools/trunk/debian/patches/10_remove_version_check.patch	2010-12-12 08:22:05 UTC (rev 15067)
@@ -0,0 +1,19 @@
+Index: python-pdftools-0.37/pdftools/pdfdefs.py
+===================================================================
+--- python-pdftools-0.37.orig/pdftools/pdfdefs.py	2010-12-12 09:17:29.415507405 +0100
++++ python-pdftools-0.37/pdftools/pdfdefs.py	2010-12-12 09:18:07.032006935 +0100
+@@ -300,13 +300,7 @@
+                 raise IndexError, "string index out of range"
+         
+         return data
+-    
+-    if sys.version_info < 2.0:
+-    
+-        def __getslice__(self, i, j):
+-        
+-            return self[max(0, i):max(0, j):]
+-    
++
+     def __len__(self):
+     
+         offset = self.file.tell()

Added: packages/python-pdftools/trunk/debian/patches/series
===================================================================
--- packages/python-pdftools/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-pdftools/trunk/debian/patches/series	2010-12-12 08:22:05 UTC (rev 15067)
@@ -0,0 +1 @@
+10_remove_version_check.patch




More information about the Python-modules-commits mailing list