Commit e711c1ad authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning

Squish: Use isinstance() instead of comparing classnames

Change-Id: Ia0683902e96f1dc175978bdbb13fbd114f6ad739
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent 705472d3
......@@ -103,9 +103,9 @@ def prepareForSignal(object, signal):
def cleanUpUserFiles(pathsToProFiles=None):
if pathsToProFiles==None:
return False
if className(pathsToProFiles) in ("str", "unicode"):
if isinstance(pathsToProFiles, (str, unicode)):
filelist = glob.glob(pathsToProFiles+".user*")
elif className(pathsToProFiles)=="list":
elif isinstance(pathsToProFiles, (list, tuple)):
filelist = []
for p in pathsToProFiles:
filelist.extend(glob.glob(p+".user*"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment