• Jeremy Hylton's avatar
    A little refactoring. · d750036b
    Jeremy Hylton yazdı
    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.
    d750036b
asyncore.py 16.1 KB