changeset 10631:5247260cee6a

make expression shorter, now the line fits into 80 chars
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 10 Mar 2010 21:21:15 +0100
parents 9947e6b008bb
children 54fb6e1fafe6
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: