python: Add Python 3 workarounds for long
[gem5.git] / src / python / m5 / util / smartdict.py
index 3cfe3294ede99ae24006b2493edfc8550141c5d6..dabc3f86b14ed6bd8ff2db8bd257bdfb1daa8345 100644 (file)
@@ -43,6 +43,9 @@
 
 from __future__ import print_function
 from __future__ import absolute_import
+import six
+if six.PY3:
+    long = int
 
 from .convert import *
 from .attrdict import attrdict