Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59942)

Side by Side Diff: Lib/os2emxpath.py

Issue 4755: Common path prefix
Patch Set: Created 10 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Module 'os2emxpath' -- common operations on OS/2 pathnames 1 # Module 'os2emxpath' -- common operations on OS/2 pathnames
2 """Common pathname manipulations, OS/2 EMX version. 2 """Common pathname manipulations, OS/2 EMX version.
3 3
4 Instead of importing this module directly, import os and refer to this 4 Instead of importing this module directly, import os and refer to this
5 module as os.path. 5 module as os.path.
6 """ 6 """
7 7
8 import os 8 import os
9 import stat 9 import stat
10 from genericpath import * 10 from genericpath import *
11 from ntpath import (expanduser, expandvars, isabs, islink, splitdrive, 11 from ntpath import (expanduser, expandvars, isabs, islink, splitdrive,
12 splitext, split) 12 splitext, split, commonpathprefix)
13 13
14 __all__ = ["normcase","isabs","join","splitdrive","split","splitext", 14 __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
15 "basename","dirname","commonprefix","getsize","getmtime", 15 "basename","dirname","commonprefix","getsize","getmtime",
16 "getatime","getctime", "islink","exists","lexists","isdir","isfile", 16 "getatime","getctime", "islink","exists","lexists","isdir","isfile",
17 "ismount","expanduser","expandvars","normpath","abspath", 17 "ismount","expanduser","expandvars","normpath","abspath",
18 "splitunc","curdir","pardir","sep","pathsep","defpath","altsep", 18 "splitunc","curdir","pardir","sep","pathsep","defpath","altsep",
19 "extsep","devnull","realpath","supports_unicode_filenames"] 19 "extsep","devnull","realpath","supports_unicode_filenames"]
20 20
21 # strings representing various path-related bits and pieces 21 # strings representing various path-related bits and pieces
22 curdir = '.' 22 curdir = '.'
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 def abspath(path): 146 def abspath(path):
147 """Return the absolute version of a path""" 147 """Return the absolute version of a path"""
148 if not isabs(path): 148 if not isabs(path):
149 path = join(os.getcwd(), path) 149 path = join(os.getcwd(), path)
150 return normpath(path) 150 return normpath(path)
151 151
152 # realpath is a no-op on systems without islink support 152 # realpath is a no-op on systems without islink support
153 realpath = abspath 153 realpath = abspath
154 154
155 supports_unicode_filenames = False 155 supports_unicode_filenames = False
OLDNEW
« Doc/library/os.path.rst ('K') | « Lib/ntpath.py ('k') | Lib/test/test_genericpath.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+