Skip to content

Commit

Permalink
Fix: "DeprecationWarning when using mount.". This fixes bottlepy#173
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Jun 21, 2011
1 parent 3804d84 commit bb58c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def mount(self, app, prefix, **options):
@self.route('/%s/:#.*#' % prefix, **options)
def mountpoint():
request.path_shift(path_depth)
return app.handle(request.environ)
return app._handle(request.environ)

def install(self, plugin):
''' Add a plugin to the list of plugins and prepare it for beeing
Expand Down Expand Up @@ -647,7 +647,7 @@ def _handle(self, environ):
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:
Expand Down

0 comments on commit bb58c8f

Please sign in to comment.