summaryrefslogtreecommitdiff
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-02-14 19:35:31 +0000
committerSkip Montanaro <skip@pobox.com>2003-02-14 19:35:31 +0000
commit379f9b34e26c5e6898ab214459625edfe685ac5a (patch)
treeccb4a8f5738b0911f819c9260e719cd95ddb932b /Lib/macpath.py
parentb3586740e25dae9aacf63ff0016c59f7045e658c (diff)
downloadcpython-379f9b34e26c5e6898ab214459625edfe685ac5a.tar.gz
Migrate definitions of several platform-dependent path-related variables
into the relevant path modules. See patch #686397.
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index e8ac467a24..8277d41b17 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -7,8 +7,18 @@ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime", "islink","exists","isdir","isfile",
"walk","expanduser","expandvars","normpath","abspath",
+ "curdir","pardir","sep","pathsep","defpath","altsep","extsep",
"realpath","supports_unicode_filenames"]
+# strings representing various path-related bits and pieces
+curdir = ':'
+pardir = '::'
+extsep = '.'
+sep = ':'
+pathsep = '\n'
+defpath = ':'
+altsep = None
+
# Normalize the case of a pathname. Dummy in Posix, but <s>.lower() here.
def normcase(path):