diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py index f833851bd..68d12fbbe 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -76,7 +76,8 @@ try: import portage_util from portage_util import atomic_ofstream, apply_secpass_permissions, apply_recursive_permissions, \ dump_traceback, getconfig, grabdict, grabdict_package, grabfile, grabfile_package, \ - map_dictlist_vals, pickle_read, pickle_write, stack_dictlist, stack_dicts, stack_lists, \ + map_dictlist_vals, normalize_path, \ + pickle_read, pickle_write, stack_dictlist, stack_dicts, stack_lists, \ unique_array, varexpand, writedict, writemsg, writemsg_stdout, write_atomic import portage_exception import portage_gpg @@ -187,13 +188,6 @@ def prefix_array(array,prefix,doblanks=1): newarray.append(x) return newarray -def normalize_path(mypath): - if mypath.startswith(os.path.sep): - # posixpath.normpath collapses 3 or more leading slashes to just 1. - return os.path.normpath(2*os.path.sep + mypath) - else: - return os.path.normpath(mypath) - dircache = {} cacheHit=0 cacheMiss=0 |