Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2169

Show
Ignore:
Timestamp:
03/30/09 11:40:09
Author:
jaraco
Message:

Added code to handle the apparent inability to sort functions in Python 3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/python3/cherrypy/process/wspbus.py

    r2156 r2169  
    142142        items = [(self._priorities[(channel, listener)], listener) 
    143143                 for listener in self.listeners[channel]] 
    144         items.sort() 
     144        by_priority = lambda item: item[0] 
     145        items.sort(key=by_priority) 
    145146        for priority, listener in items: 
    146147            try: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets