This commit is contained in:
Miroslav Stampar
2015-12-15 10:46:37 +01:00
parent dc7f2a71d2
commit b269e8418f
2 changed files with 4 additions and 4 deletions

View File

@@ -1738,7 +1738,7 @@ def posixToNtSlashes(filepath):
'C:\\\\Windows'
"""
return filepath.replace('/', '\\')
return filepath.replace('/', '\\') if filepath else filepath
def ntToPosixSlashes(filepath):
"""
@@ -1749,7 +1749,7 @@ def ntToPosixSlashes(filepath):
'C:/Windows'
"""
return filepath.replace('\\', '/')
return filepath.replace('\\', '/') if filepath else filepath
def isHexEncodedString(subject):
"""