]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added 'normcase' function.
authorGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:28:18 +0000 (18:28 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:28:18 +0000 (18:28 +0000)
Lib/macpath.py

index 533b0524b99c86dbe509b88433564d60a745691b..b0a27c85bea66a7d935c5dcf1b953cf4240f5007 100644 (file)
@@ -1,10 +1,15 @@
 # module 'macpath' -- pathname (or -related) operations for the Macintosh
 
+import string
 import mac
-
 from stat import *
 
 
+# Normalize the case of a pathname.  Dummy in Posix, but string.lower here.
+
+normcase = string.lower
+
+
 # Return true if a path is absolute.
 # On the Mac, relative paths begin with a colon,
 # but as a special case, paths with no colons at all are also relative.