From f4531f2e4718640fc244e3a7c71776c54efe24b8 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 27 Oct 2015 10:41:07 +0900 Subject: [PATCH] Fixing pep8 problems --- openstack_qa_tools/collect.py | 15 ++++++++++++++- openstack_qa_tools/collectors/queues.py | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/openstack_qa_tools/collect.py b/openstack_qa_tools/collect.py index 3a568b2..a9017bf 100644 --- a/openstack_qa_tools/collect.py +++ b/openstack_qa_tools/collect.py @@ -1,3 +1,15 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import argparse import json import logging @@ -24,7 +36,8 @@ def main(): parser = argparse.ArgumentParser() parser.add_argument('--loglevel', default=logging.INFO) args = parser.parse_args() - logging.basicConfig(format='%(asctime)-15s %(levelname)s %(threadName)s: %(message)s') + logging.basicConfig( + format='%(asctime)-15s %(levelname)s %(threadName)s: %(message)s') log = logging.getLogger() log.setLevel(args.loglevel) getmysql = threading.Thread(name='mysql', target=get_mysql) diff --git a/openstack_qa_tools/collectors/queues.py b/openstack_qa_tools/collectors/queues.py index 5337101..ffa8f37 100644 --- a/openstack_qa_tools/collectors/queues.py +++ b/openstack_qa_tools/collectors/queues.py @@ -11,8 +11,8 @@ # limitations under the License. import base64 -import logging import json +import logging import os import socket