Mercurial > hg
comparison hgext/convert/cvsps.py @ 38295:bec815f991b0
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 12 Jun 2018 18:49:22 -0400 |
parents | 80f6e95fac2d |
children | e7aa113b14f7 |
comparison
equal
deleted
inserted
replaced
38294:80f6e95fac2d | 38295:bec815f991b0 |
---|---|
49 def __init__(self, **entries): | 49 def __init__(self, **entries): |
50 self.synthetic = False | 50 self.synthetic = False |
51 self.__dict__.update(entries) | 51 self.__dict__.update(entries) |
52 | 52 |
53 def __repr__(self): | 53 def __repr__(self): |
54 items = ("%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__)) | 54 items = (r"%s=%r"%(k, self.__dict__[k]) for k in sorted(self.__dict__)) |
55 return "%s(%s)"%(type(self).__name__, ", ".join(items)) | 55 return r"%s(%s)"%(type(self).__name__, r", ".join(items)) |
56 | 56 |
57 class logerror(Exception): | 57 class logerror(Exception): |
58 pass | 58 pass |
59 | 59 |
60 def getrepopath(cvspath): | 60 def getrepopath(cvspath): |