From cec3a79b8b0e2bf910791bd98d7e82ad1f22ac9b Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah <chmouel@chmouel.com> Date: Wed, 29 Aug 2012 13:40:32 +0200 Subject: [PATCH] PEP8 cleanup. Some trivial pep8 cleanup. Change-Id: I0f02c0730bf889b2b89063bef6bcc8b71d36505c --- bin/swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/swift b/bin/swift index 4acbe6d8..e855e542 100755 --- a/bin/swift +++ b/bin/swift @@ -995,7 +995,7 @@ def split_headers(options, prefix='', error_queue=None): else: error_string = "Metadata parameter %s must contain a ':'.\n%s" \ % (item, st_post_help) - if error_queue != None: + if error_queue: error_queue.put(error_string) else: exit(error_string) @@ -1073,7 +1073,7 @@ Example: dest='auth_version', default=environ.get('ST_AUTH_VERSION', '1.0'), type=str, - help='Specify a version for authentication'\ + help='Specify a version for authentication' '(default: 1.0)') parser.add_option('-U', '--user', dest='user', default=environ.get('ST_USER'), @@ -1096,14 +1096,14 @@ Example: parser.add_option('--os-tenant-id', metavar='<auth-tenant-id>', default=environ.get('OS_TENANT_ID'), - help='OpenStack tenant ID.' \ + help='OpenStack tenant ID.' 'Defaults to env[OS_TENANT_ID]') parser.add_option('--os_tenant_id', help=SUPPRESS_HELP) parser.add_option('--os-tenant-name', metavar='<auth-tenant-name>', default=environ.get('OS_TENANT_NAME'), - help='Openstack tenant name.' \ + help='Openstack tenant name.' 'Defaults to env[OS_TENANT_NAME].') parser.add_option('--os_tenant_name', help=SUPPRESS_HELP) @@ -1122,14 +1122,14 @@ Example: parser.add_option('--os-storage-url', metavar='<storage-url>', default=environ.get('OS_STORAGE_URL'), - help='Openstack storage URL.' \ + help='Openstack storage URL.' 'Defaults to env[OS_STORAGE_URL]') parser.add_option('--os_storage_url', help=SUPPRESS_HELP) parser.add_option('--os-service-type', metavar='<service-type>', default=environ.get('OS_SERVICE_TYPE'), - help='Openstack Service type.' \ + help='Openstack Service type.' 'Defaults to env[OS_SERVICE_TYPE]') parser.add_option('--os_service_type', help=SUPPRESS_HELP)