mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-11 16:13:11 +00:00
cleanup
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3320 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
36cb9017ac
commit
aa743d49e5
1 changed files with 8 additions and 4 deletions
12
setup.py
12
setup.py
|
|
@ -56,13 +56,17 @@ win_bat_releases = ['NT', 'XP', '2000', '2003Server']
|
|||
|
||||
|
||||
def normpath (path):
|
||||
"""norm a path name to platform specific notation"""
|
||||
"""
|
||||
Norm a path name to platform specific notation.
|
||||
"""
|
||||
return os.path.normpath(path)
|
||||
|
||||
|
||||
def cnormpath (path):
|
||||
"""norm a path name to platform specific notation, but honoring
|
||||
the win_compiling flag"""
|
||||
"""
|
||||
Norm a path name to platform specific notation, but honoring
|
||||
the win_compiling flag.
|
||||
"""
|
||||
path = normpath(path)
|
||||
if win_compiling:
|
||||
# replace slashes with backslashes
|
||||
|
|
@ -300,7 +304,7 @@ def cc_supports_option (cc, option):
|
|||
pipe.tochild.close()
|
||||
status = pipe.wait()
|
||||
if os.WIFEXITED(status):
|
||||
return os.WEXITSTATUS(status)==0
|
||||
return os.WEXITSTATUS(status) == 0
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue