diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-08-25 14:08:07 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-08-25 14:08:07 (GMT) |
commit | adc63847e408ac85b82cdb5e3c4a6cf9ce9933aa (patch) | |
tree | 994660a54f59e685ffb7d3febac88bd33978d688 /Lib/idlelib/run.py | |
parent | a552e3a0c9aaa5f7540262159515c6798e5d8d7e (diff) | |
download | cpython-adc63847e408ac85b82cdb5e3c4a6cf9ce9933aa.zip cpython-adc63847e408ac85b82cdb5e3c4a6cf9ce9933aa.tar.gz cpython-adc63847e408ac85b82cdb5e3c4a6cf9ce9933aa.tar.bz2 |
1. Revert subprocess environment clearing, will restart subprocess
instead.
2. Preserve the Idle client's listening socket for reuse with the
fresh subprocess.
3. Remove some unused rpc code, comment out additional unused code.
Modified Files:
ScriptBinding.py rpc.py run.py
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 9ede2ff..5b3c733 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -1,7 +1,6 @@ import sys import time import socket -import __main__ import rpc def main(): @@ -56,18 +55,11 @@ class Executive: def __init__(self, rpchandler): self.rpchandler = rpchandler - self.base_env_keys = __main__.__dict__.keys() + import __main__ + self.locals = __main__.__dict__ def runcode(self, code): - exec code in __main__.__dict__ - - def clear_the_environment(self): - global __main__ - env = __main__.__dict__ - for key in env.keys(): - if key not in self.base_env_keys: - del env[key] - env['__doc__'] = None + exec code in self.locals def start_the_debugger(self, gui_adap_oid): import RemoteDebugger |