equal
deleted
inserted
replaced
146 The callback receives the named argument ``loaded``, which is a boolean |
146 The callback receives the named argument ``loaded``, which is a boolean |
147 indicating whether the dependent extension actually loaded. |
147 indicating whether the dependent extension actually loaded. |
148 ''' |
148 ''' |
149 |
149 |
150 if extension in _extensions: |
150 if extension in _extensions: |
151 callback(loaded=False) |
151 callback(loaded=True) |
152 else: |
152 else: |
153 _aftercallbacks.setdefault(extension, []).append(callback) |
153 _aftercallbacks.setdefault(extension, []).append(callback) |
154 |
154 |
155 def wrapcommand(table, command, wrapper, synopsis=None, docstring=None): |
155 def wrapcommand(table, command, wrapper, synopsis=None, docstring=None): |
156 '''Wrap the command named `command' in table |
156 '''Wrap the command named `command' in table |