commit | d750036b20be5f8ce0a356fe625e8ade3a6c071a | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Sun Sep 08 00:14:54 2002 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Sun Sep 08 00:14:54 2002 +0000 |
tree | fdba831de54735bf41350202f83da0f6265c9784 | |
parent | 2c0d3224fca38ed07cee2ea9c334d85b2ff0f4fe [diff] |
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.