D3724: cvsps: port changeset __repr__ to py3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jun 13 08:37:31 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbec815f991b0: cvsps: port changeset __repr__ to py3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3724?vs=9036&id=9045

REVISION DETAIL
  https://phab.mercurial-scm.org/D3724

AFFECTED FILES
  hgext/convert/cvsps.py

CHANGE DETAILS

diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py
--- a/hgext/convert/cvsps.py
+++ b/hgext/convert/cvsps.py
@@ -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



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list