remove unneeded type check as suggested by remilapeyre

This commit is contained in:
Domenico Ragusa 2020-06-07 03:46:43 +02:00
parent fe33eb0a08
commit 8193bbc208
1 changed files with 1 additions and 2 deletions

View File

@ -341,8 +341,7 @@ class ZipInfo (object):
)
def __init__(self, filename="NoName", date_time=(1980,1,1,0,0,0)):
if isinstance(filename, os.PathLike):
filename = os.fspath(filename)
filename = os.fspath(filename)
self.orig_filename = filename # Original file name in archive
# Terminate the file name at the first null byte. Null bytes in file