diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2013-08-28 05:23:00 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2013-09-01 02:51:13 +0100 |
commit | 6dfe3cdced31c65c8537682739a75bbdcf194154 (patch) | |
tree | c9b1c14f34d65b15ba9d73faf085d47ae44f875c /subvertpy/ra_svn.py | |
parent | 565557f4f08597c993cb5586141d602ddc968c62 (diff) |
Use “key in dict” syntax rather than dict.has_key()
Introduced in Python 2.2
Patch by Martin Panter
Diffstat (limited to 'subvertpy/ra_svn.py')
-rw-r--r-- | subvertpy/ra_svn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subvertpy/ra_svn.py b/subvertpy/ra_svn.py index 07912efa..213f35b0 100644 --- a/subvertpy/ra_svn.py +++ b/subvertpy/ra_svn.py @@ -1047,7 +1047,7 @@ class SVNServer(SVNConnection): # Expect: while not self._stop: ( cmd, args ) = self.recv_msg() - if not self.commands.has_key(cmd): + if cmd not in self.commands: self.mutter("client used unknown command %r" % cmd) self.send_unknown(cmd) return |