diff --git a/mercurial/statprof.py b/mercurial/statprof.py --- a/mercurial/statprof.py +++ b/mercurial/statprof.py @@ -177,7 +177,7 @@ state = ProfileState() class CodeSite(object): cache = {} - __slots__ = ('path', 'lineno', 'function', 'source') + __slots__ = (u'path', u'lineno', u'function', u'source') def __init__(self, path, lineno, function): self.path = path @@ -232,7 +232,7 @@ class CodeSite(object): return os.path.basename(self.path) class Sample(object): - __slots__ = ('stack', 'time') + __slots__ = (u'stack', u'time') def __init__(self, stack, time): self.stack = stack diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -36,7 +36,6 @@ mercurial/cffi/mpatch.py: error importing: No module named 'mercurial.cffi' (error at check-py3-compat.py:*) mercurial/cffi/osutil.py: error importing: No module named 'mercurial.cffi' (error at check-py3-compat.py:*) mercurial/scmwindows.py: error importing: No module named 'msvcrt' (error at win32.py:*) - mercurial/statprof.py: error importing: __slots__ items must be strings, not 'bytes' (error at statprof.py:*) mercurial/win32.py: error importing: No module named 'msvcrt' (error at win32.py:*) mercurial/windows.py: error importing: No module named 'msvcrt' (error at windows.py:*)