Ignore:
Timestamp:
Dec 20, 2009, 9:46:46 PM (15 years ago)
Author:
broder
Message:

tighten a bit of code

File:
1 edited

Legend:

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

    r2707 r2708  
    255255        def __getattr__(self, name):
    256256            try:
    257                 machine_id = int(name)
    258                 cherrypy.request.params['machine_id'] = machine_id
     257                cherrypy.request.params['machine_id'] = int(name)
    259258                return self
    260259            except ValueError:
Note: See TracChangeset for help on using the changeset viewer.