hook: even fewer parentheses for load errors
authorSiddharth Agarwal <sid0@fb.com>
Fri, 12 Feb 2016 11:34:04 -0800
changeset 28106 cedbe8723d99
parent 28105 1fc7b5363871
child 28107 88e309a0c133
hook: even fewer parentheses for load errors Missed this one.
mercurial/hook.py
tests/test-hook.t
--- a/mercurial/hook.py	Mon Feb 08 17:34:32 2016 +0100
+++ b/mercurial/hook.py	Fri Feb 12 11:34:04 2016 -0800
@@ -36,7 +36,7 @@
         d = funcname.rfind('.')
         if d == -1:
             raise error.HookLoadError(
-                _('%s hook is invalid ("%s" not in a module)')
+                _('%s hook is invalid: "%s" not in a module')
                 % (hname, funcname))
         modname = funcname[:d]
         oldpaths = sys.path
--- a/tests/test-hook.t	Mon Feb 08 17:34:32 2016 +0100
+++ b/tests/test-hook.t	Fri Feb 12 11:34:04 2016 -0800
@@ -496,7 +496,7 @@
   $ hg pull ../a
   pulling from ../a
   searching for changes
-  abort: preoutgoing.nomodule hook is invalid ("nomodule" not in a module)
+  abort: preoutgoing.nomodule hook is invalid: "nomodule" not in a module
   [255]
 
   $ echo '[hooks]' > ../a/.hg/hgrc