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

Changeset 2445

Show
Ignore:
Timestamp:
06/14/09 19:17:11
Author:
fumanchu
Message:

Meh. Not much use for py3util now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/__init__.py

    r2437 r2445  
    128128        newdoc = [cls.__doc__ or ""] 
    129129         
    130         for name in sorted(dct.keys()): 
     130        dctkeys = dct.keys() 
     131        dctkeys.sort() 
     132        for name in dctkeys: 
    131133            if name.endswith("__doc"): 
    132134                # Remove the magic doc attribute. 
     
    152154 
    153155 
    154 from cherrypy.py3util import sorted 
    155156from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect 
    156157from cherrypy._cperror import NotFound, CherryPyException, TimeoutError 
  • trunk/cherrypy/lib/httputil.py

    r2431 r2445  
    2020                      'maintenance of the server.') 
    2121 
    22 from cherrypy.py3util import sorted, reversed 
    2322import re 
    2423import urllib 
     
    196195            hv = HeaderElement.from_str(element) 
    197196        result.append(hv) 
    198      
    199     return list(reversed(sorted(result))) 
     197    result.sort() 
     198    result.reverse() 
     199    return result 
    200200 
    201201def decode_TEXT(value): 
  • trunk/cherrypy/test/test_dynamicobjectmapping.py

    r2413 r2445  
    44 
    55import cherrypy 
    6 from cherrypy.py3util import sorted 
    76 
    87script_names = ["", "/foo", "/users/fred/blog", "/corp/blog"] 
     
    9998 
    10099        def GET(self): 
    101             return unicode(sorted(user_lookup.keys())) 
     100            keys = user_lookup.keys() 
     101            keys.sort() 
     102            return unicode(keys) 
    102103 
    103104        def dynamic_dispatch(self, vpath): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets