| 4 | # Distributed under the terms of the Modified BSD License. |
| 5 | |
| 6 | class Sentinel(object): |
| 7 | |
| 8 | def __init__(self, name, module, docstring=None): |
| 9 | self.name = name |
| 10 | self.module = module |
| 11 | if docstring: |
| 12 | self.__doc__ = docstring |
| 13 | |
| 14 | |
| 15 | def __repr__(self): |
| 16 | return str(self.module)+'.'+self.name |
| 17 |