| 123 | |
| 124 | |
| 125 | class NS(object): |
| 126 | |
| 127 | def __init__(self, **kwargs): |
| 128 | self.__dict__.update(kwargs) |
| 129 | |
| 130 | def __repr__(self): |
| 131 | sorted_items = sorted(self.__dict__.items()) |
| 132 | kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items]) |
| 133 | return '%s(%s)' % (type(self).__name__, kwarg_str) |
| 134 | |
| 135 | def __eq__(self, other): |
| 136 | return vars(self) == vars(other) |
| 137 | |
| 138 | |
| 139 | class ArgumentParserError(Exception): |
no outgoing calls