summaryrefslogtreecommitdiffstats
path: root/Tools/idle/EditorWindow.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-09-08 00:14:54 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-09-08 00:14:54 (GMT)
commitd750036b20be5f8ce0a356fe625e8ade3a6c071a (patch)
treefdba831de54735bf41350202f83da0f6265c9784 /Tools/idle/EditorWindow.py
parent2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe (diff)
downloadcpython-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