projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7094ec
)
code_formatter: use __builtin__ which is correct, not __builtins__
author
Nathan Binkert
<nate@binkert.org>
Tue, 22 Sep 2009 22:24:16 +0000
(15:24 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Tue, 22 Sep 2009 22:24:16 +0000
(15:24 -0700)
src/python/m5/util/code_formatter.py
patch
|
blob
|
history
diff --git
a/src/python/m5/util/code_formatter.py
b/src/python/m5/util/code_formatter.py
index 919a6423b9c1ddf1e63d5c7ac4448ee5feceb323..396fe0e52fa647e17f736cb3fd26dcfed1f3feec 100644
(file)
--- a/
src/python/m5/util/code_formatter.py
+++ b/
src/python/m5/util/code_formatter.py
@@
-24,6
+24,7
@@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+import __builtin__
import inspect
import os
import re
@@
-64,8
+65,8
@@
class lookup(object):
if self.formatter.globals and item in self.frame.f_globals:
return self.frame.f_globals[item]
- if item in __builtin
s
__:
- return __builtin
s
__[item]
+ if item in __builtin
__.__dict
__:
+ return __builtin
__.__dict
__[item]
try:
item = int(item)