summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergBobrovsky <SergBobrovsky@users.noreply.github.com>2020-12-25 20:28:40 +0300
committerMarcel Hellkamp <marc@gsites.de>2020-12-31 16:19:50 +0100
commit971bc5028340ebd8b7afe6ce909934e8fed54a47 (patch)
tree543bdd6912be5b7b20861c95af5e94f843ec2005
parentf5a9f76586e06a1cb7bbea8b395000fe9fde7f31 (diff)
downloadbottle-971bc5028340ebd8b7afe6ce909934e8fed54a47.tar.gz
fix erroneous expression
from standart module "operator" ``` def is_not(a, b): "Same as a is not b." return a is not b ```
-rwxr-xr-xbottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index ecd83c5..f7ab2f8 100755
--- a/bottle.py
+++ b/bottle.py
@@ -575,7 +575,7 @@ class Route(object):
callback = plugin(callback)
except RouteReset: # Try again with changed configuration.
return self._make_callback()
- if not callback is self.callback:
+ if callback is not self.callback:
update_wrapper(callback, self.callback)
return callback