From 99dcf267eaee8fe9e6f0e68563ed0715430690aa Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 11 Jul 2011 13:21:36 -0700 Subject: [PATCH] Cleanup: non-Python semicolon infection. --- common.py | 6 +++--- generate_objects.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common.py b/common.py index b296849..e91677c 100644 --- a/common.py +++ b/common.py @@ -86,11 +86,11 @@ def setup(): # These 3 should always be present. if 's3' not in config: - raise RuntimeError('Your config file is missing the s3 section!'); + raise RuntimeError('Your config file is missing the s3 section!') if 'defaults' not in config.s3: - raise RuntimeError('Your config file is missing the s3.defaults section!'); + raise RuntimeError('Your config file is missing the s3.defaults section!') if 'fixtures' not in config: - raise RuntimeError('Your config file is missing the fixtures section!'); + raise RuntimeError('Your config file is missing the fixtures section!') if config.fixtures.has_key('bucket prefix'): template = config.fixtures['bucket prefix'] diff --git a/generate_objects.py b/generate_objects.py index b4bae5c..23b370f 100755 --- a/generate_objects.py +++ b/generate_objects.py @@ -10,7 +10,7 @@ import sys def parse_opts(): - parser = OptionParser(); + parser = OptionParser() parser.add_option('-O', '--outfile', help='write output to FILE. Defaults to STDOUT', metavar='FILE') parser.add_option('-b', '--bucket', dest='bucket', help='push objects to BUCKET', metavar='BUCKET') parser.add_option('--seed', dest='seed', help='optional seed for the random number generator') @@ -73,7 +73,7 @@ def main(): Results are printed to the terminal and written in CSV format to ./siege.log ''' - (options, args) = parse_opts(); + (options, args) = parse_opts() #SETUP random.seed(options.seed if options.seed else None)