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)