summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn P. Speno <none@none>2005-07-21 13:49:46 +0000
committerJohn P. Speno <none@none>2005-07-21 13:49:46 +0000
commit59ce7e099b4bee5e757d864f8588e501f9a42316 (patch)
treefa833affedd2db74be667c68a1b5afb213df33ee
parenteaeb0d52c51400427e274ac73fdc689272e871bf (diff)
downloadcherrypy-git-59ce7e099b4bee5e757d864f8588e501f9a42316.tar.gz
Removed windows line endings from revision 490.
-rw-r--r--cherrypy/lib/cptools.py9
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