@@ -81,28 +81,28 @@ def isdevdrive(path):
8181 return False
8282
8383
84- def getsize (filename ):
84+ def getsize (filename , / ):
8585 """Return the size of a file, reported by os.stat()."""
8686 return os .stat (filename ).st_size
8787
8888
89- def getmtime (filename ):
89+ def getmtime (filename , / ):
9090 """Return the last modification time of a file, reported by os.stat()."""
9191 return os .stat (filename ).st_mtime
9292
9393
94- def getatime (filename ):
94+ def getatime (filename , / ):
9595 """Return the last access time of a file, reported by os.stat()."""
9696 return os .stat (filename ).st_atime
9797
9898
99- def getctime (filename ):
99+ def getctime (filename , / ):
100100 """Return the metadata change time of a file, reported by os.stat()."""
101101 return os .stat (filename ).st_ctime
102102
103103
104104# Return the longest prefix of all list elements.
105- def commonprefix (m ):
105+ def commonprefix (m , / ):
106106 "Given a list of pathnames, returns the longest common leading component"
107107 if not m : return ''
108108 # Some people pass in a list of pathname parts to operate in an OS-agnostic
@@ -120,14 +120,14 @@ def commonprefix(m):
120120
121121# Are two stat buffers (obtained from stat, fstat or lstat)
122122# describing the same file?
123- def samestat (s1 , s2 ):
123+ def samestat (s1 , s2 , / ):
124124 """Test whether two stat buffers reference the same file"""
125125 return (s1 .st_ino == s2 .st_ino and
126126 s1 .st_dev == s2 .st_dev )
127127
128128
129129# Are two filenames really pointing to the same file?
130- def samefile (f1 , f2 ):
130+ def samefile (f1 , f2 , / ):
131131 """Test whether two pathnames reference the same actual file or directory
132132
133133 This is determined by the device number and i-node number and
0 commit comments