diff options
author | John P. Speno <none@none> | 2005-07-21 13:49:46 +0000 |
---|---|---|
committer | John P. Speno <none@none> | 2005-07-21 13:49:46 +0000 |
commit | 59ce7e099b4bee5e757d864f8588e501f9a42316 (patch) | |
tree | fa833affedd2db74be667c68a1b5afb213df33ee | |
parent | eaeb0d52c51400427e274ac73fdc689272e871bf (diff) | |
download | cherrypy-git-59ce7e099b4bee5e757d864f8588e501f9a42316.tar.gz |
Removed windows line endings from revision 490.
-rw-r--r-- | cherrypy/lib/cptools.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py index e156d0ef..39730c13 100644 --- a/cherrypy/lib/cptools.py +++ b/cherrypy/lib/cptools.py @@ -101,14 +101,13 @@ class PositionalParametersAware(object): def default( self, *args, **kwargs ): # remap parameters to fix positional parameters if len(args) == 0: - args = ("index",)
+ args = ("index",) m = getattr(self, args[0], None) if m and getattr(m, "exposed", False): return getattr(self, args[0])(*args[1:], **kwargs) - else:
- m = getattr(self, "index", None)
- if m and getattr(m, "exposed", False):
+ else: + m = getattr(self, "index", None) + if m and getattr(m, "exposed", False): return self.index(*args, **kwargs) raise cherrypy.NotFound, cherrypy.request.path default.exposed = True -
\ No newline at end of file |