changeset 51830 | 454feddab720 |
parent 51699 | ca7bde5dbafb |
parent 51785 | 99632adff795 |
child 51834 | 3b8d92f71d92 |
51828:4eccb65e444f | 51830:454feddab720 |
---|---|
70 |
70 |
71 def __init__(self, name): |
71 def __init__(self, name): |
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 |
79 |
79 |
80 @webcommand(b'log') |
80 @webcommand(b'log') |