Changeset 201
- Timestamp:
- 05/16/05 08:27:08 (4 years ago)
- Files:
-
- manage/branches/python/CLI.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
manage/branches/python/CLI.py
r200 r201 311 311 return help 312 312 elif htype is tuple or htype is list: 313 if type(help[0]) is list or type(help[0]) is tuple: 314 out = {} 315 for k, v in help: 316 out[k] = v 317 return out 313 318 return { help[0] : help[1] } 314 319 elif htype is str: 315 320 return { key : help } 316 321 elif htype is types.FunctionType: 317 return dict(help(self))322 return self.parse_help_node(key, {'HELP' : help(self) }) 318 323 else: 319 324 raise TypeError("expected dict, tuple or str for HELP branch, got %s" % htype)
