diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-08-09 11:47:10 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-08-09 11:47:10 +0200 |
commit | 0b565571dc37df79db326273e0d47cb52c2d7bfe (patch) | |
tree | 56bdecad5c8081ce97ff12ce0111f7ac10d76534 | |
parent | a2effd103e2f0c76f317166d97d2efa32c74b654 (diff) | |
download | logilab-common-0b565571dc37df79db326273e0d47cb52c2d7bfe.tar.gz |
minor cleanups
-rw-r--r-- | clcommands.py | 10 | ||||
-rw-r--r-- | pyro_ext.py | 5 |
2 files changed, 6 insertions, 9 deletions
diff --git a/clcommands.py b/clcommands.py index 4341d5f..3608887 100644 --- a/clcommands.py +++ b/clcommands.py @@ -20,11 +20,8 @@ one command. e.g called as "tool command [options] args..." where <options> and <args> are command'specific - - - - """ + __docformat__ = "restructuredtext en" # XXX : merge with optparser ? @@ -142,7 +139,10 @@ def cmd_run(cmdname, *args): def main_run(args, doc=DEFAULT_DOC, copyright=DEFAULT_COPYRIGHT): - """command line tool""" + """command line tool + + >>> main_run(sys.argv[1:]) + """ try: arg = args.pop(0) except IndexError: diff --git a/pyro_ext.py b/pyro_ext.py index 151dea8..e619130 100644 --- a/pyro_ext.py +++ b/pyro_ext.py @@ -23,11 +23,8 @@ Main functions available: approach and register it in the nameserver. * `ns_unregister` unregister an object identifier from the nameserver. * `ns_get_proxy` get a pyro proxy from a nameserver object identifier. - -:organization: Logilab - - """ + __docformat__ = "restructuredtext en" import logging |