Fixing pep8 problems

This commit is contained in:
Clint Byrum 2015-10-27 10:41:07 +09:00
parent a0a8598dd6
commit f4531f2e47
2 changed files with 15 additions and 2 deletions

View File

@ -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)

View File

@ -11,8 +11,8 @@
# limitations under the License.
import base64
import logging
import json
import logging
import os
import socket