Commits

Gustavo Picon  committed 991c0cd

Remove clutter from cherrypy module

  • Participants
  • Parent commits 0918248
  • Branches cp4

Comments (0)

Files changed (1)

File cherrypy/__init__.py

 __version__ = "4.0.0alpha"
 
 from cherrypy.lib.compat import urljoin as _urljoin, urlencode as _urlencode
-from cherrypy.lib.compat import basestring, unicodestr
+from cherrypy.lib.compat import basestring as _basestring
 
 from cherrypy.lib.error import HTTPError, HTTPRedirect, InternalRedirect
 from cherrypy.lib.error import NotFound, CherryPyException, TimeoutError
     def expose_(func):
         func.exposed = True
         if alias is not None:
-            if isinstance(alias, basestring):
+            if isinstance(alias, _basestring):
                 parents[alias.replace(".", "_")] = func
             else:
                 for a in alias: