Rename the build_parser method to make it obviously private.
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 28 Aug 2009 20:59:11 -0400 |
parents |
efbdbc2fc8a0
|
children |
b346af17863f
|
branches/tags |
(none) |
files |
t.py |
Changes
--- a/t.py Fri Aug 28 20:57:58 2009 -0400
+++ b/t.py Fri Aug 28 20:59:11 2009 -0400
@@ -161,7 +161,7 @@
-def build_parser():
+def _build_parser():
parser = OptionParser()
parser.add_option("-a", "--add",
@@ -190,7 +190,7 @@
return parser
def _main():
- (options, args) = build_parser().parse_args()
+ (options, args) = _build_parser().parse_args()
td = TaskDict(taskdir=options.taskdir, name=options.name)
text = ' '.join(args).strip()