mercurial/dispatch.py
changeset 16686 67964cda8701
parent 16683 525fdb738975
child 16705 c2d9ef43ff6c
--- a/mercurial/dispatch.py	Sat May 12 16:00:53 2012 +0200
+++ b/mercurial/dispatch.py	Sat May 12 16:00:57 2012 +0200
@@ -706,7 +706,7 @@
     field = ui.config('profiling', 'sort', default='inlinetime')
     climit = ui.configint('profiling', 'nested', default=5)
 
-    if not format in ['text', 'kcachegrind']:
+    if format not in ['text', 'kcachegrind']:
         ui.warn(_("unrecognized profiling format '%s'"
                     " - Ignored\n") % format)
         format = 'text'