mercurial/transaction.py
changeset 43506 9f70512ae2cf
parent 43106 d783f945a701
child 44056 8e09551206f5
--- a/mercurial/transaction.py	Sun Nov 10 07:30:14 2019 -0800
+++ b/mercurial/transaction.py	Fri Nov 08 11:19:20 2019 -0800
@@ -135,7 +135,7 @@
         validator=None,
         releasefn=None,
         checkambigfiles=None,
-        name=r'<unnamed>',
+        name='<unnamed>',
     ):
         """Begin a new transaction
 
@@ -220,8 +220,8 @@
         self._abortcallback = {}
 
     def __repr__(self):
-        name = r'/'.join(self._names)
-        return r'<transaction name=%s, count=%d, usages=%d>' % (
+        name = '/'.join(self._names)
+        return '<transaction name=%s, count=%d, usages=%d>' % (
             name,
             self._count,
             self._usages,
@@ -414,7 +414,7 @@
         self._file.flush()
 
     @active
-    def nest(self, name=r'<unnamed>'):
+    def nest(self, name='<unnamed>'):
         self._count += 1
         self._usages += 1
         self._names.append(name)