Changeset 2167
- Timestamp:
- 03/30/09 11:20:31
- Files:
-
- branches/python3/cherrypy/__init__.py (modified) (1 diff)
- branches/python3/cherrypy/_cpchecker.py (modified) (1 diff)
- branches/python3/cherrypy/lib/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/python3/cherrypy/__init__.py
r2165 r2167 94 94 Help on class Thing in module pkg.mod: 95 95 96 class Thing( __builtin__.object)96 class Thing(object) 97 97 | A thing and its properties. 98 98 | branches/python3/cherrypy/_cpchecker.py
r2164 r2167 242 242 def _populate_known_types(self): 243 243 import builtins 244 b uiltins = [x for x in list(vars(__builtin__).values())245 if type(x) is type(str)]244 b = [x for x in list(vars(builtins).values()) 245 if type(x) is type(str)] 246 246 247 247 def traverse(obj, namespace): 248 248 for name in dir(obj): 249 249 vtype = type(getattr(obj, name, None)) 250 if vtype in b uiltins:250 if vtype in b: 251 251 self.known_config_types[namespace + "." + name] = vtype 252 252 branches/python3/cherrypy/lib/__init__.py
r2156 r2167 90 90 pass 91 91 92 # See if the Name is in __builtin__.92 # See if the Name is in builtins. 93 93 try: 94 94 import builtins 95 return getattr( __builtin__, o.name)95 return getattr(builtins, o.name) 96 96 except AttributeError: 97 97 pass

