# Check whether PathClass are the same\r
#\r
def __eq__(self, Other):\r
- if type(Other) == type(self):\r
+ if isinstance(Other, type(self)):\r
return self.Path == Other.Path\r
else:\r
return self.Path == str(Other)\r
if not ArchList:\r
return NewArchList\r
\r
- if type(ArchList) == list:\r
+ if isinstance(ArchList, list):\r
for Arch in ArchList:\r
Arch = Arch.upper()\r
NewArchList.append(Arch)\r
- elif type(ArchList) == str:\r
+ elif isinstance(ArchList, str):\r
ArchList = ArchList.upper()\r
NewArchList.append(ArchList)\r
\r