Browse Source

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

rdb 6 years ago
parent
commit
ba1023efa9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/stdpy/file.py

+ 1 - 0
direct/src/stdpy/file.py

@@ -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)