[Python-checkins] r52314 - python/branches/release25-maint/Lib/tarfile.py
georg.brandl
python-checkins at python.org
Thu Oct 12 14:03:11 CEST 2006
Author: georg.brandl
Date: Thu Oct 12 14:03:11 2006
New Revision: 52314
Modified:
python/branches/release25-maint/Lib/tarfile.py
Log:
Fix tarfile depending on buggy int('1\0', base) behavior.
(backport from rev. 52313)
Modified: python/branches/release25-maint/Lib/tarfile.py
==============================================================================
--- python/branches/release25-maint/Lib/tarfile.py (original)
+++ python/branches/release25-maint/Lib/tarfile.py Thu Oct 12 14:03:11 2006
@@ -144,7 +144,7 @@
# There are two possible encodings for a number field, see
# itn() below.
if s[0] != chr(0200):
- n = int(s.rstrip(NUL) or "0", 8)
+ n = int(s.rstrip(NUL + " ") or "0", 8)
else:
n = 0L
for i in xrange(len(s) - 1):
More information about the Python-checkins
mailing list