summaryrefslogtreecommitdiff
path: root/paste/util
diff options
context:
space:
mode:
authoraodag <devnull@localhost>2015-05-02 05:51:49 +0900
committeraodag <devnull@localhost>2015-05-02 05:51:49 +0900
commit16be47735215e8c19b02760974fcd20cca7b1506 (patch)
tree62920f6a4c1f08723dd4a438efd86ebf43719ee7 /paste/util
parent2434b4e6314663dbba066cfb184d78ad735f2e76 (diff)
downloadpaste-16be47735215e8c19b02760974fcd20cca7b1506.tar.gz
replace ``has_key`` method to ``in`` operator #9fix-has_key
Diffstat (limited to 'paste/util')
-rw-r--r--paste/util/classinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/util/classinstance.py b/paste/util/classinstance.py
index ac2be3e..6436a44 100644
--- a/paste/util/classinstance.py
+++ b/paste/util/classinstance.py
@@ -24,7 +24,7 @@ class _methodwrapper(object):
self.type = type
def __call__(self, *args, **kw):
- assert not kw.has_key('self') and not kw.has_key('cls'), (
+ assert 'self' not in kw and 'cls' not in kw, (
"You cannot use 'self' or 'cls' arguments to a "
"classinstancemethod")
return self.func(*((self.obj, self.type) + args), **kw)