33 sphinxcontrib.domaintools 
44 ========================= 
55
6-  Code is taken from `sphinx.domains.std`_ and is 
6+  Code is taken from `sphinx.domains.std`_ and is 
77 parameterized for easy domain creation. 
88
99 :copyright: Kay-Uwe (Kiwi) Lorenz, ModuleWorks GmbH 
2626
2727from  sphinx  import  addnodes 
2828from  sphinx .roles  import  XRefRole 
29- from  sphinx .locale  import  l_ ,  _ 
29+ from  sphinx .locale  import  _ 
3030from  sphinx .domains  import  Domain , ObjType 
3131from  sphinx .directives  import  ObjectDescription 
3232from  sphinx .util  import  ws_re 
@@ -47,7 +47,7 @@ class GenericObject(ObjectDescription):
4747 domain = 'my-domain-name', indextemplate=( 
4848
4949 class MyDescriptionObject(GenericObject): 
50- 
50+ 
5151 """ 
5252 indextemplate  =  '' 
5353 parse_node  =  None 
@@ -106,7 +106,7 @@ class CustomDomain(Domain):
106106
107107 def  clear_doc (self , docname ):
108108 if  'objects'  in  self .data :
109- 
109+ 110110 for  key , (fn , _ ) in  self .data ['objects' ].items ():
111111 if  fn  ==  docname :
112112 del  self .data ['objects' ][key ]
@@ -153,8 +153,8 @@ def custom_domain(class_name, name='', label='', elements = {}):
153153
154154 - `role` - role name, defaults to entry's key 
155155
156-  - `indextemplate` - e.g. ``pair: %s; Make Target``, where %s will be 
157-  the matched part of your role. You may leave this empty, defaults 
156+  - `indextemplate` - e.g. ``pair: %s; Make Target``, where %s will be 
157+  the matched part of your role. You may leave this empty, defaults 
158158 to ``pair: %s; <objname>`` 
159159
160160 - `parse_node` - a function with signature ``(env, sig, signode)``, 
0 commit comments