File: 10_remove_version_check.patch

package info (click to toggle)
python-pdftools 0.37-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 256 kB
  • ctags: 258
  • sloc: python: 1,676; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()