mercurial/dispatch.py
changeset 36729 389b950f5190
parent 36720 3fdba7fb264d
child 37084 f0b6fbea00cf
--- a/mercurial/dispatch.py	Sun Mar 04 16:06:47 2018 -0500
+++ b/mercurial/dispatch.py	Sun Mar 04 15:24:45 2018 -0500
@@ -158,7 +158,7 @@
     if len(inst.args) > 1:
         write(_("hg: parse error at %s: %s\n") %
               (pycompat.bytestr(inst.args[1]), inst.args[0]))
-        if (inst.args[0][0] == ' '):
+        if inst.args[0].startswith(' '):
             write(_("unexpected leading whitespace\n"))
     else:
         write(_("hg: parse error: %s\n") % inst.args[0])