Some instance type test improved
authorlbessard
Thu, 28 Aug 2008 14:22:45 +0200
changeset 225 aed21ae6658f
parent 224 aae70ef5af6d
child 226 f301f4ed4717
Some instance type test improved
plugins/canfestival/config_utils.py
--- a/plugins/canfestival/config_utils.py	Tue Aug 26 15:31:09 2008 +0200
+++ b/plugins/canfestival/config_utils.py	Thu Aug 28 14:22:45 2008 +0200
@@ -508,7 +508,7 @@
                     continue
                 new_index = False
                 
-                if type(variable) == IntType:
+                if isinstance(variable, (IntType, LongType)):
                     # If variable is an integer then variable is unexpected
                     self.MasterNode.SetEntry(current_idx + 0x200, subindex, self.TrashVariables[variable])
                 else: