##// 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 class CodeSite(object):
177 class CodeSite(object):
178 cache = {}
178 cache = {}
179
179
180 __slots__ = ('path', 'lineno', 'function', 'source')
180 __slots__ = (u'path', u'lineno', u'function', u'source')
181
181
182 def __init__(self, path, lineno, function):
182 def __init__(self, path, lineno, function):
183 self.path = path
183 self.path = path
@@ -232,7 +232,7 b' class CodeSite(object):'
232 return os.path.basename(self.path)
232 return os.path.basename(self.path)
233
233
234 class Sample(object):
234 class Sample(object):
235 __slots__ = ('stack', 'time')
235 __slots__ = (u'stack', u'time')
236
236
237 def __init__(self, stack, time):
237 def __init__(self, stack, time):
238 self.stack = stack
238 self.stack = stack
@@ -36,7 +36,6 b''
36 mercurial/cffi/mpatch.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
36 mercurial/cffi/mpatch.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
37 mercurial/cffi/osutil.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
37 mercurial/cffi/osutil.py: error importing: <ImportError> No module named 'mercurial.cffi' (error at check-py3-compat.py:*)
38 mercurial/scmwindows.py: error importing: <ImportError> No module named 'msvcrt' (error at win32.py:*)
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 mercurial/win32.py: error importing: <ImportError> No module named 'msvcrt' (error at win32.py:*)
39 mercurial/win32.py: error importing: <ImportError> No module named 'msvcrt' (error at win32.py:*)
41 mercurial/windows.py: error importing: <ImportError> No module named 'msvcrt' (error at windows.py:*)
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