make expression shorter, now the line fits into 80 chars
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 10 Mar 2010 21:21:15 +0100
changeset 10631 5247260cee6a
parent 10630 9947e6b008bb
child 10632 54fb6e1fafe6
make expression shorter, now the line fits into 80 chars
mercurial/commands.py
--- a/mercurial/commands.py	Wed Mar 10 21:14:24 2010 +0100
+++ b/mercurial/commands.py	Wed Mar 10 21:21:15 2010 +0100
@@ -2886,7 +2886,7 @@
                " accesslog errorlog webdir_conf certificate encoding")
     for o in optlist.split():
         val = opts.get(o, '')
-        if val is None or val == '': # should check against default options instead
+        if val in (None, ''): # should check against default options instead
             continue
         baseui.setconfig("web", o, val)
         if repo and repo.ui != baseui: