diff hgext/win32mbcs.py @ 9391:2705e6816d33

use 'x in dict' instead of 'dict.has_key(x)' "in" is faster, and has_key will be removed in py3k
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 24 Aug 2009 21:00:34 +0200
parents 8164d1abaa36
children 7805b27e92b1
line wrap: on
line diff
--- a/hgext/win32mbcs.py	Wed Aug 26 13:07:27 2009 +0200
+++ b/hgext/win32mbcs.py	Mon Aug 24 21:00:34 2009 +0200
@@ -101,7 +101,7 @@
     if args:
         args = list(args)
         args[0] = appendsep(args[0])
-    if kwds.has_key('path'):
+    if 'path' in kwds:
         kwds['path'] = appendsep(kwds['path'])
     return func(*args, **kwds)