diff options
author | ianb <devnull@localhost> | 2005-05-17 03:06:22 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2005-05-17 03:06:22 +0000 |
commit | ed51c888895583a856f40ce951c0c131a26f9ca3 (patch) | |
tree | 8f56068ec37a20406eab36c1f4a86ff233a5ddb8 /paste/reloader.py | |
parent | a3ce49f606ece7bfc639a7d27fa6a4c50b0b8b37 (diff) | |
download | paste-ed51c888895583a856f40ce951c0c131a26f9ca3.tar.gz |
A bunch of pylint-inspired changes; all minor code cleanup
Diffstat (limited to 'paste/reloader.py')
-rw-r--r-- | paste/reloader.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/paste/reloader.py b/paste/reloader.py index 72148e1..f2d75ba 100644 --- a/paste/reloader.py +++ b/paste/reloader.py @@ -63,7 +63,7 @@ class Monitor: def check_reload(self): filenames = self.extra_files[:] - for name, module in sys.modules.items(): + for module in sys.modules.values(): try: filenames.append(module.__file__) except AttributeError: @@ -95,22 +95,3 @@ class Monitor: watch_file = classinstancemethod(watch_file) watch_file = Monitor.watch_file - -def awake_select(addrs): - """ - When using socket.select(), processes will not quit. By connecting - to the addresses locally we move the code out of the select, where - it can terminate properly. - - (For now, KeyboardInterrupt seems to terminate these selects - properly) - """ - - for addr in addrs: - sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - try: - sock.connect(addr) - sock.close() - except: - pass - |