Changeset 2527 for package_branches


Ignore:
Timestamp:
Oct 29, 2009, 1:36:43 AM (15 years ago)
Author:
price
Message:

tighten a bit of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2526 r2527  
    260260        def __getattr__(self, name):
    261261            try:
    262                 machine_id = int(name)
    263                 cherrypy.request.params['machine_id'] = machine_id
     262                cherrypy.request.params['machine_id'] = int(name)
    264263                return self
    265264            except ValueError:
Note: See TracChangeset for help on using the changeset viewer.