equal
deleted
inserted
replaced
3 # Copyright FUJIWARA Katsunori <foozy@lares.dti.ne.jp> and others |
3 # Copyright FUJIWARA Katsunori <foozy@lares.dti.ne.jp> and others |
4 # |
4 # |
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from __future__ import absolute_import |
|
9 |
8 |
10 from . import ( |
9 from . import ( |
11 configitems, |
10 configitems, |
12 error, |
11 error, |
13 pycompat, |
12 pycompat, |
20 # We still add the official API to the registrar module for consistency with |
19 # We still add the official API to the registrar module for consistency with |
21 # the other items extensions want might to register. |
20 # the other items extensions want might to register. |
22 configitem = configitems.getitemregister |
21 configitem = configitems.getitemregister |
23 |
22 |
24 |
23 |
25 class _funcregistrarbase(object): |
24 class _funcregistrarbase: |
26 """Base of decorator to register a function for specific purpose |
25 """Base of decorator to register a function for specific purpose |
27 |
26 |
28 This decorator stores decorated functions into own dict 'table'. |
27 This decorator stores decorated functions into own dict 'table'. |
29 |
28 |
30 The least derived class can be defined by overriding 'formatdoc', |
29 The least derived class can be defined by overriding 'formatdoc', |