diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-01-25 12:12:38 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-02-12 17:36:12 +0000 |
commit | 5cd4248672e5cd62cfec4753bd6d6ce666694f1f (patch) | |
tree | 7b0379ee8f0ff44a76895ff50922becda6a16d40 /src/unittest | |
parent | 5cf312eb5bec50ab2142ce4c7df05d673cd9a716 (diff) | |
download | gem5-5cd4248672e5cd62cfec4753bd6d6ce666694f1f.tar.xz |
python: Replace dict.has_key with 'key in dict'
Python 3 has removed dict.has_key in favour of 'key in dict'.
Change-Id: I9852a5f57d672bea815308eb647a0ce45624fad5
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15987
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Diffstat (limited to 'src/unittest')
-rwxr-xr-x | src/unittest/genini.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unittest/genini.py b/src/unittest/genini.py index f10ad6874..ea2763a34 100755 --- a/src/unittest/genini.py +++ b/src/unittest/genini.py @@ -70,7 +70,7 @@ for path in pathlist: for arg in args: m5execfile(arg, globals()) -if globals().has_key('root') and isinstance(root, Root): +if 'root' in globals() and isinstance(root, Root): instantiate(root) else: print("Instantiation skipped: no root object found.") |