##// END OF EJS Templates
py3: fix type of some elements of __all__ lists
Manuel Jacob -
r52682:99632adf stable
parent child Browse files
Show More
@@ -105,4 +105,4 b' def extsetup(ui):'
105 )
105 )
106 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
106 extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
107 webcommands.highlightcss = generate_css
107 webcommands.highlightcss = generate_css
108 webcommands.__all__.append(b'highlightcss')
108 webcommands.__all__.append('highlightcss')
@@ -89,7 +89,7 b' import traceback'
89
89
90 from mercurial import pycompat
90 from mercurial import pycompat
91
91
92 __all__ = [b"Zeroconf", b"ServiceInfo", b"ServiceBrowser"]
92 __all__ = ["Zeroconf", "ServiceInfo", "ServiceBrowser"]
93
93
94 # hook for threads
94 # hook for threads
95
95
@@ -464,7 +464,7 b' class hgweb:'
464
464
465 res.headers[b'ETag'] = tag
465 res.headers[b'ETag'] = tag
466
466
467 if cmd not in webcommands.__all__:
467 if pycompat.sysstr(cmd) not in webcommands.__all__:
468 msg = b'no such method: %s' % cmd
468 msg = b'no such method: %s' % cmd
469 raise ErrorResponse(HTTP_BAD_REQUEST, msg)
469 raise ErrorResponse(HTTP_BAD_REQUEST, msg)
470 else:
470 else:
@@ -72,7 +72,7 b' class webcommand:'
72 self.name = name
72 self.name = name
73
73
74 def __call__(self, func):
74 def __call__(self, func):
75 __all__.append(self.name)
75 __all__.append(pycompat.sysstr(self.name))
76 commands[self.name] = func
76 commands[self.name] = func
77 return func
77 return func
78
78
@@ -6,7 +6,7 b' Profiler = _lsprof.Profiler'
6 # PyPy doesn't expose profiler_entry from the module.
6 # PyPy doesn't expose profiler_entry from the module.
7 profiler_entry = getattr(_lsprof, 'profiler_entry', None)
7 profiler_entry = getattr(_lsprof, 'profiler_entry', None)
8
8
9 __all__ = [b'profile', b'Stats']
9 __all__ = ['profile', 'Stats']
10
10
11
11
12 def profile(f, *args, **kwds):
12 def profile(f, *args, **kwds):
@@ -122,7 +122,7 b' from . import ('
122 defaultdict = collections.defaultdict
122 defaultdict = collections.defaultdict
123 contextmanager = contextlib.contextmanager
123 contextmanager = contextlib.contextmanager
124
124
125 __all__ = [b'start', b'stop', b'reset', b'display', b'profile']
125 __all__ = ['start', 'stop', 'reset', 'display', 'profile']
126
126
127 skips = {
127 skips = {
128 "util.py:check",
128 "util.py:check",
@@ -20,4 +20,4 b' def raiseerror(web):'
20
20
21 def extsetup(ui):
21 def extsetup(ui):
22 setattr(webcommands, 'raiseerror', raiseerror)
22 setattr(webcommands, 'raiseerror', raiseerror)
23 webcommands.__all__.append(b'raiseerror')
23 webcommands.__all__.append('raiseerror')
General Comments 0
You need to be logged in to leave comments. Login now