diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-09-08 00:14:54 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2002-09-08 00:14:54 (GMT) |
commit | d750036b20be5f8ce0a356fe625e8ade3a6c071a (patch) | |
tree | fdba831de54735bf41350202f83da0f6265c9784 /Tools/idle/EditorWindow.py | |
parent | 2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe (diff) | |
download | cpython-d750036b20be5f8ce0a356fe625e8ade3a6c071a.zip cpython-d750036b20be5f8ce0a356fe625e8ade3a6c071a.tar.gz cpython-d750036b20be5f8ce0a356fe625e8ade3a6c071a.tar.bz2 |
A little refactoring.
Add read(), write(), and readwrite() helper functions to shorten poll
functions. Use get() instead of try/except KeyError for lookup.
XXX How could the lookup ever fail?
Remove module-level DEBUG flag.
Use iteritems() instead of items() when walking the socket map.
Reformat the functions I touched so that are consistently Pythonic.
Diffstat (limited to 'Tools/idle/EditorWindow.py')
0 files changed, 0 insertions, 0 deletions