summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-02-03 17:04:54 -0500
committerNathan Binkert <binkertn@umich.edu>2005-02-03 17:04:54 -0500
commit52403a5ddf1e02f53d0624254f41e27e3914df29 (patch)
tree8f3940b5cba764c2f9c2118b0ff3acd41c173597 /sim
parent936ad584022be7a4e89292c708cc624841198f62 (diff)
downloadgem5-52403a5ddf1e02f53d0624254f41e27e3914df29.tar.xz
get rid of defined and just access the env dict directly
get rid of the alias for true to True and false to False to keep consistent python syntax. util/stats/info.py: Fix typo --HG-- extra : convert_revision : e69588a8de52424e043315e70008ca3a3ede7d5b
Diffstat (limited to 'sim')
-rw-r--r--sim/pyconfig/m5config.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/sim/pyconfig/m5config.py b/sim/pyconfig/m5config.py
index 5ba7542a0..4e3a4103c 100644
--- a/sim/pyconfig/m5config.py
+++ b/sim/pyconfig/m5config.py
@@ -34,11 +34,6 @@ except:
env = {}
env.update(os.environ)
-def defined(key):
- return env.has_key(key)
-
-def define(key, value = True):
- env[key] = value
def panic(*args, **kwargs):
sys.exit(*args, **kwargs)
@@ -64,9 +59,6 @@ class Singleton(type):
cls._instance = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instance
-if os.environ.has_key('FULL_SYSTEM'):
- FULL_SYSTEM = True
-
#####################################################################
#
# M5 Python Configuration Utility
@@ -670,7 +662,7 @@ class Node(object):
% (self.name, ptype, value._path)
found, done = obj.find(ptype, value._path)
if isinstance(found, Proxy):
- done = false
+ done = False
obj = obj.parent
return found
@@ -1267,10 +1259,6 @@ class Enum(type):
# "Constants"... handy aliases for various values.
#
-# For compatibility with C++ bool constants.
-false = False
-true = True
-
# Some memory range specifications use this as a default upper bound.
MAX_ADDR = Addr._max
MaxTick = Tick._max