diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-12 18:07:38 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-12 18:07:38 (GMT) |
commit | 2d5c219fe09eacf81c139e5af9114fbbdd093d85 (patch) | |
tree | e130d4287eeff8daa8f21e10afe6d6783e1db440 /Lib/tarfile.py | |
parent | 2c849f2f2071560168bc4e08aa119b9b984fddbe (diff) | |
download | cpython-2d5c219fe09eacf81c139e5af9114fbbdd093d85.zip cpython-2d5c219fe09eacf81c139e5af9114fbbdd093d85.tar.gz cpython-2d5c219fe09eacf81c139e5af9114fbbdd093d85.tar.bz2 |
unicode is named str now => fix type check.
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 ef6f1c7..97973fd 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -978,7 +978,7 @@ class TarInfo(object): info["name"] += "/" for key in ("name", "linkname", "uname", "gname"): - if type(info[key]) is unicode: + if isinstance(info[key], str): info[key] = info[key].encode(encoding, errors) return info |