Explorar o código

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

rdb %!s(int64=6) %!d(string=hai) anos
pai
achega
ba1023efa9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)