Fix PEP-8 stuff
This commit is contained in:
@@ -112,9 +112,11 @@ def _dictify_context(context):
|
|||||||
context = context.to_dict()
|
context = context.to_dict()
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
def _get_binary_name():
|
def _get_binary_name():
|
||||||
return os.path.basename(inspect.stack()[-1][1])
|
return os.path.basename(inspect.stack()[-1][1])
|
||||||
|
|
||||||
|
|
||||||
def get_log_file_path(binary=None):
|
def get_log_file_path(binary=None):
|
||||||
if FLAGS.logfile:
|
if FLAGS.logfile:
|
||||||
return FLAGS.logfile
|
return FLAGS.logfile
|
||||||
@@ -122,6 +124,7 @@ def get_log_file_path(binary=None):
|
|||||||
binary = binary or _get_binary_name()
|
binary = binary or _get_binary_name()
|
||||||
return '%s.log' % (os.path.join(FLAGS.logdir, binary),)
|
return '%s.log' % (os.path.join(FLAGS.logdir, binary),)
|
||||||
|
|
||||||
|
|
||||||
def basicConfig():
|
def basicConfig():
|
||||||
logging.basicConfig()
|
logging.basicConfig()
|
||||||
for handler in logging.root.handlers:
|
for handler in logging.root.handlers:
|
||||||
|
Reference in New Issue
Block a user