stdpy: clarify comment to indicate os.PathLike is supported in open()

This commit is contained in:
rdb 2019-09-04 12:26:43 +02:00
parent 323f74cb55
commit ba1023efa9
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ def open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None,
elif isinstance(file, strType):
filename = core.Filename.fromOsSpecific(file)
else:
# It's either a Filename object or an os.PathLike.
# If a Filename is given, make a writable copy anyway.
filename = core.Filename(file)