remove unneeded type check as suggested by remilapeyre
This commit is contained in:
parent
fe33eb0a08
commit
8193bbc208
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue