Fix PEP-8 stuff

This commit is contained in:
Soren Hansen
2011-02-16 10:46:59 +01:00
parent 4cf7fe2cc6
commit 5280e42a5b

View File

@@ -112,9 +112,11 @@ def _dictify_context(context):
context = context.to_dict()
return context
def _get_binary_name():
return os.path.basename(inspect.stack()[-1][1])
def get_log_file_path(binary=None):
if FLAGS.logfile:
return FLAGS.logfile
@@ -122,6 +124,7 @@ def get_log_file_path(binary=None):
binary = binary or _get_binary_name()
return '%s.log' % (os.path.join(FLAGS.logdir, binary),)
def basicConfig():
logging.basicConfig()
for handler in logging.root.handlers: