# HG changeset patch # User Thomas Arendsen Hein # Date 1268252475 -3600 # Node ID 5247260cee6a132feca9f2464395d614c52e278c # Parent 9947e6b008bb4e814bd51708328223cb0841629a make expression shorter, now the line fits into 80 chars diff -r 9947e6b008bb -r 5247260cee6a 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: