summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/sdist.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-31 02:32:10 (GMT)
committerGreg Ward <gward@python.net>2000-05-31 02:32:10 (GMT)
commitd8dfb4c4b8d661acee263e3feb77974ced69e97d (patch)
tree19fd4f8d8b032f885118e9e181d67b87820e8762 /Lib/distutils/command/sdist.py
parent65bc20c23e22543e13ff6d1fbdf51705a0b5aa1a (diff)
downloadcpython-d8dfb4c4b8d661acee263e3feb77974ced69e97d.zip
cpython-d8dfb4c4b8d661acee263e3feb77974ced69e97d.tar.gz
cpython-d8dfb4c4b8d661acee263e3feb77974ced69e97d.tar.bz2
Renamed 'native_path()' to 'convert_path()'.
Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep).
Diffstat (limited to 'Lib/distutils/command/sdist.py')
-rw-r--r--Lib/distutils/command/sdist.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 6626b9e..c06860f 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -11,7 +11,7 @@ import fnmatch
from types import *
from glob import glob
from distutils.core import Command
-from distutils.util import newer, create_tree, remove_tree, native_path, \
+from distutils.util import newer, create_tree, remove_tree, convert_path, \
write_file
from distutils.archive_util import check_archive_formats
from distutils.text_file import TextFile
@@ -322,7 +322,7 @@ class sdist (Command):
action)
continue
- pattern_list = map(native_path, words[1:])
+ pattern_list = map(convert_path, words[1:])
elif action in ('recursive-include','recursive-exclude'):
if len (words) < 3:
@@ -332,8 +332,8 @@ class sdist (Command):
action)
continue
- dir = native_path(words[1])
- pattern_list = map (native_path, words[2:])
+ dir = convert_path(words[1])
+ pattern_list = map (convert_path, words[2:])
elif action in ('graft','prune'):
if len (words) != 2:
@@ -343,7 +343,7 @@ class sdist (Command):
action)
continue
- dir_pattern = native_path (words[1])
+ dir_pattern = convert_path (words[1])
else:
template.warn ("invalid manifest template line: " +