diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-03-01 11:07:44 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-03-01 11:07:44 -0500 |
commit | 6172f79d9eb4dab3d66349cf37747dc37284e325 (patch) | |
tree | 7980be58539b6d2c1f7bd611c64839be98d4df95 | |
parent | ddcec6a6f58ee0e286992f2b59047183e578e526 (diff) | |
download | gem5-6172f79d9eb4dab3d66349cf37747dc37284e325.tar.xz |
add some comments.
sim/pyconfig/m5config.py:
Add some comments to indicate what the decorators mean.
--HG--
extra : convert_revision : fbcbcbe4ad8cd62f2bd12af6b1f141c66752b870
-rw-r--r-- | sim/pyconfig/m5config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/pyconfig/m5config.py b/sim/pyconfig/m5config.py index 50032476c..c413fef71 100644 --- a/sim/pyconfig/m5config.py +++ b/sim/pyconfig/m5config.py @@ -234,6 +234,9 @@ class MetaConfigNode(type): for key,val in dict.items(): del dict[key] + # See description of decorators in the importer.py file + # We just strip off the expr_decorator now since we don't + # need from this point on. if key.startswith(expr_decorator): key = key[len(expr_decorator):] @@ -285,6 +288,9 @@ class MetaConfigNode(type): # initialize attributes with values from class definition for key,value in dict.iteritems(): + # turn an expression that was munged in the importer + # because it had dots into a list so that we can find the + # proper variable to modify. key = key.split(dot_decorator) c = cls for item in key[:-1]: |