Commit 0a0cf9b9 authored by Michael Hudson's avatar Michael Hudson

fix ^C on 2.3

parent faf3666d
......@@ -148,8 +148,8 @@ class PyPyConsole(code.InteractiveConsole):
# don't copy attributes that look like names that came
# from self.w_globals (itself the main offender) as they
# would then get copied back into the applevel namespace.
local.update([(k,v) for (k, v) in self.__dict__.iteritems()
if not k.startswith('w_')])
local.update(dict([(k,v) for (k, v) in self.__dict__.iteritems()
if not k.startswith('w_')]))
del local['locals']
for w_name in self.space.unpackiterable(self.w_globals):
local['w_' + self.space.str_w(w_name)] = (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment