diff options
| author | Marc Abramowitz <marc@marc-abramowitz.com> | 2015-05-11 07:54:36 -0700 |
|---|---|---|
| committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2015-05-11 07:54:36 -0700 |
| commit | 613c3a40b2c36f1c87c7ad5c04cd367361534c8b (patch) | |
| tree | 30743fa835e54d8fbd97bd910724c161d7085161 /paste/util/classinstance.py | |
| parent | 432792126d4bed37227d0b1ff7284325360558ac (diff) | |
| parent | 16be47735215e8c19b02760974fcd20cca7b1506 (diff) | |
| download | paste-613c3a40b2c36f1c87c7ad5c04cd367361534c8b.tar.gz | |
Merged in aodag/paste-py3/fix-has_key (pull request #25)
replace ``has_key`` method to ``in`` operator #9
Diffstat (limited to 'paste/util/classinstance.py')
| -rw-r--r-- | paste/util/classinstance.py | 2 |
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) |
