diff options
| author | Larry Hastings <larry@hastings.org> | 2014-01-06 15:24:19 (GMT) |
|---|---|---|
| committer | Larry Hastings <larry@hastings.org> | 2014-01-06 15:24:19 (GMT) |
| commit | b7f5dcadf2a929a92cfd5d0386426bc143cb01b4 (patch) | |
| tree | d3ee3564eac5ff32bf9db2f90907f1979969918b /Lib/tarfile.py | |
| parent | e7ee44e9ba36fe6220ebb31c5c7faad5cfb2a250 (diff) | |
| parent | 74fc8c47f66da5673ed733d21e9014e9508f2819 (diff) | |
| download | cpython-b7f5dcadf2a929a92cfd5d0386426bc143cb01b4.zip cpython-b7f5dcadf2a929a92cfd5d0386426bc143cb01b4.tar.gz cpython-b7f5dcadf2a929a92cfd5d0386426bc143cb01b4.tar.bz2 | |
Merge 3.4.0b2 release revisions back into mainline.
Diffstat (limited to 'Lib/tarfile.py')
| -rw-r--r-- | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index f4df6c7..aec7009 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -196,7 +196,7 @@ def itn(n, digits=8, format=DEFAULT_FORMAT): # A 0o200 byte indicates a positive number, a 0o377 byte a negative # number. if 0 <= n < 8 ** (digits - 1): - s = bytes("%0*o" % (digits - 1, n), "ascii") + NUL + s = bytes("%0*o" % (digits - 1, int(n)), "ascii") + NUL elif format == GNU_FORMAT and -256 ** (digits - 1) <= n < 256 ** (digits - 1): if n >= 0: s = bytearray([0o200]) |
