Kaydet (Commit) 2d5c219f authored tarafından Walter Dörwald's avatar Walter Dörwald

unicode is named str now => fix type check.

üst 2c849f2f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment