summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael E Brown <mebrown@michaels-house.net>2007-12-03 13:31:28 -0600
committerMichael E Brown <mebrown@michaels-house.net>2007-12-03 13:31:28 -0600
commitaed81342043efd1b342b660aac812af1913af171 (patch)
treea18f39b95ba59a28d45a46e3aa5deba7c42c089a
parente6ac40e7f5532aa25947b98bdab6c9c4a1a004e3 (diff)
downloadmock-aed81342043efd1b342b660aac812af1913af171.tar.gz
mock-aed81342043efd1b342b660aac812af1913af171.tar.xz
mock-aed81342043efd1b342b660aac812af1913af171.zip
small code consolidation.
-rwxr-xr-xpy/mock.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/py/mock.py b/py/mock.py
index fc6caf9..bb5df8c 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -64,10 +64,7 @@ import mock.util
def command_parse(config_opts):
"""return options and args from parsing the command line"""
-
- usage = __doc__
-
- parser = OptionParser(usage=usage, version=__VERSION__)
+ parser = OptionParser(usage=__doc__, version=__VERSION__)
parser.add_option("--rebuild", action="store_const", const="rebuild",
dest="mode", default='rebuild',
help="rebuild the specified SRPM(s)")