summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_init.py4
-rw-r--r--site_scons/site_tools/default.py2
-rw-r--r--site_scons/site_tools/git.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/site_scons/site_init.py b/site_scons/site_init.py
index 351f49bc0..623e26e0a 100644
--- a/site_scons/site_init.py
+++ b/site_scons/site_init.py
@@ -49,7 +49,7 @@ try:
# 0.98, and the second will fail for 0.98.0
EnsureSConsVersion(0, 98)
EnsureSConsVersion(0, 98, 1)
-except SystemExit, e:
+except SystemExit as e:
print("""
For more details, see:
http://gem5.org/Dependencies
@@ -59,7 +59,7 @@ For more details, see:
# pybind11 requires python 2.7
try:
EnsurePythonVersion(2, 7)
-except SystemExit, e:
+except SystemExit as e:
print ("""
You can use a non-default installation of the Python interpreter by
rearranging your PATH so that scons finds the non-default 'python' and
diff --git a/site_scons/site_tools/default.py b/site_scons/site_tools/default.py
index 9d02ab73b..08736f01a 100644
--- a/site_scons/site_tools/default.py
+++ b/site_scons/site_tools/default.py
@@ -61,7 +61,7 @@ def common_config(env):
"M5", # M5 configuration (e.g., path to kernels)
]
- for key,val in sorted(os.environ.iteritems()):
+ for key,val in sorted(os.environ.items()):
if key in use_vars or \
any([key.startswith(prefix) for prefix in use_prefixes]):
env['ENV'][key] = val
diff --git a/site_scons/site_tools/git.py b/site_scons/site_tools/git.py
index 1b40f28ef..e5b79129b 100644
--- a/site_scons/site_tools/git.py
+++ b/site_scons/site_tools/git.py
@@ -54,7 +54,7 @@ def install_style_hooks(env):
try:
gitdir = env.Dir(readCommand(
["git", "rev-parse", "--git-dir"]).strip("\n"))
- except Exception, e:
+ except Exception as e:
print("Warning: Failed to find git repo directory: %s" % e)
return