Use string literal concatenation for optlist and import -p option
authorThomas Arendsen Hein <thomas@intevation.de>
Tue, 25 Apr 2006 09:00:09 +0200
changeset 2125 3610d9468b1e
parent 2124 27fd8b7a6c51
child 2126 2e77f7852e82
Use string literal concatenation for optlist and import -p option
mercurial/commands.py
--- a/mercurial/commands.py	Tue Apr 25 00:43:40 2006 +0200
+++ b/mercurial/commands.py	Tue Apr 25 09:00:09 2006 +0200
@@ -2566,8 +2566,8 @@
                 r = repo.addchangegroup(fin)
                 respond(str(r))
 
-    optlist = """name templates style address port
-                 ipv6 accesslog errorlog webdir_conf"""
+    optlist = ("name templates style address port ipv6"
+               " accesslog errorlog webdir_conf")
     for o in optlist.split():
         if opts[o]:
             ui.setconfig("web", o, opts[o])
@@ -2998,8 +2998,8 @@
     "import|patch":
         (import_,
          [('p', 'strip', 1,
-           _('directory strip option for patch. This has the same\n') +
-           _('meaning as the corresponding patch option')),
+           _('directory strip option for patch. This has the same\n'
+             'meaning as the corresponding patch option')),
           ('b', 'base', '', _('base path')),
           ('f', 'force', None,
            _('skip check for outstanding uncommitted changes'))],