diff options
author | Miles Kaufmann <milesck@eecs.umich.edu> | 2007-08-30 15:16:58 -0400 |
---|---|---|
committer | Miles Kaufmann <milesck@eecs.umich.edu> | 2007-08-30 15:16:58 -0400 |
commit | 9cb49ab9e0ff8917d20fd7dc81be3ce5ecc81bd8 (patch) | |
tree | 110c04e9c6002f4be98a36a77ff85f7dcc29a9f2 /src/python/m5/SimObject.py | |
parent | f67cd046731f07cc76ec63d0614be81d2e212ac4 (diff) | |
download | gem5-9cb49ab9e0ff8917d20fd7dc81be3ce5ecc81bd8.tar.xz |
python: Eliminate the Python use of eval() and frame manipulation
--HG--
extra : convert_revision : 04520bcfab510580a1c7fb341afbd2487287d1ab
Diffstat (limited to 'src/python/m5/SimObject.py')
-rw-r--r-- | src/python/m5/SimObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 22c488f5d..14978dd75 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -757,7 +757,7 @@ class SimObject(object): if self._ccParams: return self._ccParams - cc_params_struct = eval('m5.objects.params.%sParams' % self.type) + cc_params_struct = getattr(m5.objects.params, '%sParams' % self.type) cc_params = cc_params_struct() cc_params.object = self cc_params.name = str(self) |