##// END OF EJS Templates
py3: use unicodes in __slots__...
Pulkit Goyal -
r30568:bb35fe86 default
parent child Browse files
Show More
@@ -177,7 +177,7 b' state = ProfileState()'
177 177 class CodeSite(object):
178 178 cache = {}
179 179
180 __slots__ = ('path', 'lineno', 'function', 'source')
180 __slots__ = (u'path', u'lineno', u'function', u'source')
181 181
182 182 def __init__(self, path, lineno, function):
183 183 self.path = path
@@ -232,7 +232,7 b' class CodeSite(object):'
232 232 return os.path.basename(self.path)
233 233
234 234 class Sample(object):
235 __slots__ = ('stack', 'time')
235 __slots__ = (u'stack', u'time')
236 236
237 237 def __init__(self, stack, time):
238 238 self.stack = stack
@@ -36,7 +36,6 b''
36 36 mercurial/cffi/mpatch.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
37 37 mercurial/cffi/osutil.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
38 38 mercurial/scmwindows.py: error importing: <ImportError> No module named 'msvcrt' (error at win32.py:*)
39 mercurial/statprof.py: error importing: <TypeError> __slots__ items must be strings, not 'bytes' (error at statprof.py:*)
40 39 mercurial/win32.py: error importing: <ImportError> No module named 'msvcrt' (error at win32.py:*)
41 40 mercurial/windows.py: error importing: <ImportError> No module named 'msvcrt' (error at windows.py:*)
42 41
General Comments 0
You need to be logged in to leave comments. Login now