changeset 34279:047f2af8ceb0

bundle2: make ValueError messages native strings
author Augie Fackler <augie@google.com>
date Mon, 18 Sep 2017 14:03:21 -0400
parents ea7588c11c36
children 2bdd55abd56c
files mercurial/bundle2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):