summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2011-06-21 11:01:14 +0200
committerMarcel Hellkamp <marc@gsites.de>2011-06-21 11:04:49 +0200
commit03990a71baa3f295e1a9b5f57c88e5b40f0b423e (patch)
tree6fc4a7adce9bceda1ded7901d1f3f807e0d19cd7
parent037c7f076e6ef919ffff3ec4de0ee2baae7c39d2 (diff)
downloadbottle-03990a71baa3f295e1a9b5f57c88e5b40f0b423e.tar.gz
Fix: "DeprecationWarning when using mount.". This fixes #173
-rwxr-xr-xbottle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index e0d118e..7351eff 100755
--- a/bottle.py
+++ b/bottle.py
@@ -441,7 +441,7 @@ class Bottle(object):
@self.route('/%s/:#.*#' % prefix, **options)
def mountpoint():
request.path_shift(path_depth)
- return app.handle(request.environ)
+ return app._handle(request.environ)
def add_filter(self, ftype, func):
depr("Filters are deprecated and can be replaced with plugins.") #0.9
@@ -653,7 +653,7 @@ class Bottle(object):
return r
except RouteReset: # Route reset requested by the callback or a plugin.
del self.ccache[handle]
- return self.handle(environ) # Try again.
+ return self._handle(environ) # Try again.
except (KeyboardInterrupt, SystemExit, MemoryError):
raise
except Exception, e: