From 35207712dcfef23dea29d83e4d3d15fcab38b55e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 12 Oct 2006 12:03:07 +0000 Subject: [PATCH] Fix tarfile depending on buggy int('1\0', base) behavior. --- Lib/tarfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 38cccae1d5..8d5f021c39 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -144,7 +144,7 @@ def nti(s): # 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): -- 2.50.0