[Python-modules-team] Bug#606535: python-pdftools: bogus Python version check
Jakub Wilk
jwilk at debian.org
Fri Dec 10 00:50:42 UTC 2010
Source: python-pdftools
Version: 0.37-2
Severity: minor
I found this gem in pdftools/pdfdefs.py:
| if sys.version_info < 2.0:
|
| def __getslice__(self, i, j):
|
| return self[max(0, i):max(0, j):]
Tuples are never smaller that floating point number, and Python 1.X
didn't even have sys.version_info...
--
Jakub Wilk
More information about the Python-modules-team
mailing list