bundle2: make ValueError messages native strings
authorAugie Fackler <augie@google.com>
Mon, 18 Sep 2017 14:03:21 -0400
changeset 34279 047f2af8ceb0
parent 34278 ea7588c11c36
child 34280 2bdd55abd56c
bundle2: make ValueError messages native strings
mercurial/bundle2.py
--- a/mercurial/bundle2.py	Mon Sep 18 13:36:05 2017 -0400
+++ b/mercurial/bundle2.py	Mon Sep 18 14:03:21 2017 -0400
@@ -614,9 +614,9 @@
     def addparam(self, name, value=None):
         """add a stream level parameter"""
         if not name:
-            raise ValueError('empty parameter name')
+            raise ValueError(r'empty parameter name')
         if name[0] not in pycompat.bytestr(string.ascii_letters):
-            raise ValueError('non letter first character: %s' % name)
+            raise ValueError(r'non letter first character: %s' % name)
         self._params.append((name, value))
 
     def addpart(self, part):