Make Python code more idiomatic

This commit is contained in:
JoeLametta
2018-05-02 08:45:00 +00:00
parent a484815106
commit 2b4140d300
12 changed files with 24 additions and 27 deletions

View File

@@ -197,7 +197,7 @@ def getRealPath(refPath, filePath):
@type filePath: unicode
"""
assert type(filePath) is unicode, "%r is not unicode" % filePath
assert isinstance(filePath, unicode), "%r is not unicode" % filePath
if os.path.exists(filePath):
return filePath