| 143 | |
| 144 | |
| 145 | class NS(object): |
| 146 | |
| 147 | def __init__(self, **kwargs): |
| 148 | self.__dict__.update(kwargs) |
| 149 | |
| 150 | def __repr__(self): |
| 151 | sorted_items = sorted(self.__dict__.items()) |
| 152 | kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items]) |
| 153 | return '%s(%s)' % (type(self).__name__, kwarg_str) |
| 154 | |
| 155 | def __eq__(self, other): |
| 156 | return vars(self) == vars(other) |
| 157 | |
| 158 | |
| 159 | class ArgumentParserError(Exception): |
no outgoing calls