projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Add Python 3 workarounds for long
[gem5.git]
/
src
/
python
/
m5
/
util
/
smartdict.py
diff --git
a/src/python/m5/util/smartdict.py
b/src/python/m5/util/smartdict.py
index 3cfe3294ede99ae24006b2493edfc8550141c5d6..dabc3f86b14ed6bd8ff2db8bd257bdfb1daa8345 100644
(file)
--- a/
src/python/m5/util/smartdict.py
+++ b/
src/python/m5/util/smartdict.py
@@
-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