equal
deleted
inserted
replaced
14 return [] |
14 return [] |
15 else: |
15 else: |
16 return [val] |
16 return [val] |
17 |
17 |
18 |
18 |
19 class namespaces(object): |
19 class namespaces: |
20 """provides an interface to register and operate on multiple namespaces. See |
20 """provides an interface to register and operate on multiple namespaces. See |
21 the namespace class below for details on the namespace object. |
21 the namespace class below for details on the namespace object. |
22 |
22 |
23 """ |
23 """ |
24 |
24 |
122 if n: |
122 if n: |
123 return n |
123 return n |
124 raise KeyError(_(b'no such name: %s') % name) |
124 raise KeyError(_(b'no such name: %s') % name) |
125 |
125 |
126 |
126 |
127 class namespace(object): |
127 class namespace: |
128 """provides an interface to a namespace |
128 """provides an interface to a namespace |
129 |
129 |
130 Namespaces are basically generic many-to-many mapping between some |
130 Namespaces are basically generic many-to-many mapping between some |
131 (namespaced) names and nodes. The goal here is to control the pollution of |
131 (namespaced) names and nodes. The goal here is to control the pollution of |
132 jamming things into tags or bookmarks (in extension-land) and to simplify |
132 jamming things into tags or bookmarks (in extension-land) and to simplify |