From: Nathan Binkert Date: Sun, 26 Feb 2006 05:57:37 +0000 (-0500) Subject: fix small python bug in database processing code X-Git-Tag: m5_2.0_beta1~87^2~35^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c3e8d148cd349e5cb73c0d018271d171da0571c;p=gem5.git fix small python bug in database processing code util/stats/db.py: fix usage of hasattr --HG-- extra : convert_revision : b384e1efeda76921c565f9f391694c27273edcec --- diff --git a/util/stats/db.py b/util/stats/db.py index d9b78c7d1..c0e7796eb 100644 --- a/util/stats/db.py +++ b/util/stats/db.py @@ -158,7 +158,7 @@ class Database(object): return None from info import ProxyError, scalar, vector, value, values, total, len - if system is None and hasattr('system', job): + if system is None and hasattr(job, 'system'): system = job.system if system is not None: