cvsps: port changeset __repr__ to py3
authorAugie Fackler <augie@google.com>
Tue, 12 Jun 2018 18:49:22 -0400
changeset 38306 bec815f991b0
parent 38305 80f6e95fac2d
child 38307 42f3a277c8dc
cvsps: port changeset __repr__ to py3 This appears to be unused except as a debugging aid, as it didn't break until I added a debug print() in service of the previous fix. Sigh. Differential Revision: https://phab.mercurial-scm.org/D3724
hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py	Tue Jun 12 18:24:25 2018 -0400
+++ b/hgext/convert/cvsps.py	Tue Jun 12 18:49:22 2018 -0400
@@ -51,8 +51,8 @@
         self.__dict__.update(entries)
 
     def __repr__(self):
-        items = ("%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__))
-        return "%s(%s)"%(type(self).__name__, ", ".join(items))
+        items = (r"%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__))
+        return r"%s(%s)"%(type(self).__name__, r", ".join(items))
 
 class logerror(Exception):
     pass