minor change

This commit is contained in:
Miroslav Stampar 2010-02-20 23:11:05 +00:00
parent 2a07af2294
commit 9c014c0fd0

View File

@ -853,18 +853,18 @@ def urlEncodeCookieValues(cookieStr):
def directoryPath(path): def directoryPath(path):
retVal = None retVal = None
if path.find('/') != -1: if isWindowsPath(path):
retVal = posixpath.dirname(path)
else:
retVal = ntpath.dirname(path) retVal = ntpath.dirname(path)
else:
retVal = posixpath.dirname(path)
return retVal return retVal
def normalizePath(path): def normalizePath(path):
retVal = None retVal = None
if path.find('/') != -1: if isWindowsPath(path):
retVal = posixpath.normpath(path)
else:
retVal = ntpath.normpath(path) retVal = ntpath.normpath(path)
else:
retVal = posixpath.normpath(path)
return retVal return retVal
def safeStringFormat(formatStr, params): def safeStringFormat(formatStr, params):