Show More
@@ -105,4 +105,4 b' def extsetup(ui):' | |||
|
105 | 105 | ) |
|
106 | 106 | extensions.wrapfunction(webcommands, 'annotate', annotate_highlight) |
|
107 | 107 | webcommands.highlightcss = generate_css |
|
108 |
webcommands.__all__.append( |
|
|
108 | webcommands.__all__.append('highlightcss') |
@@ -89,7 +89,7 b' import traceback' | |||
|
89 | 89 | |
|
90 | 90 | from mercurial import pycompat |
|
91 | 91 | |
|
92 |
__all__ = [ |
|
|
92 | __all__ = ["Zeroconf", "ServiceInfo", "ServiceBrowser"] | |
|
93 | 93 | |
|
94 | 94 | # hook for threads |
|
95 | 95 |
@@ -464,7 +464,7 b' class hgweb:' | |||
|
464 | 464 | |
|
465 | 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 | 468 | msg = b'no such method: %s' % cmd |
|
469 | 469 | raise ErrorResponse(HTTP_BAD_REQUEST, msg) |
|
470 | 470 | else: |
@@ -72,7 +72,7 b' class webcommand:' | |||
|
72 | 72 | self.name = name |
|
73 | 73 | |
|
74 | 74 | def __call__(self, func): |
|
75 | __all__.append(self.name) | |
|
75 | __all__.append(pycompat.sysstr(self.name)) | |
|
76 | 76 | commands[self.name] = func |
|
77 | 77 | return func |
|
78 | 78 |
@@ -6,7 +6,7 b' Profiler = _lsprof.Profiler' | |||
|
6 | 6 | # PyPy doesn't expose profiler_entry from the module. |
|
7 | 7 | profiler_entry = getattr(_lsprof, 'profiler_entry', None) |
|
8 | 8 | |
|
9 |
__all__ = [ |
|
|
9 | __all__ = ['profile', 'Stats'] | |
|
10 | 10 | |
|
11 | 11 | |
|
12 | 12 | def profile(f, *args, **kwds): |
@@ -122,7 +122,7 b' from . import (' | |||
|
122 | 122 | defaultdict = collections.defaultdict |
|
123 | 123 | contextmanager = contextlib.contextmanager |
|
124 | 124 | |
|
125 |
__all__ = [ |
|
|
125 | __all__ = ['start', 'stop', 'reset', 'display', 'profile'] | |
|
126 | 126 | |
|
127 | 127 | skips = { |
|
128 | 128 | "util.py:check", |
General Comments 0
You need to be logged in to leave comments.
Login now