Fix lint and flake8 issues with the logging code
from __future__ import absolute_import
+import io
import os
import sys
import logging
@@ -89,7 +90,8 @@ def find_caller(stack_info=False, stacklevel=1):
"""
if six.PY2:
rv = '(unknown file)', 0, '(unknown function)'
- else: # python 3, has extra tuple element at the end for stack information
+ else:
+ # python 3, has extra tuple element at the end for stack information
rv = '(unknown file)', 0, '(unknown function)', None
try:
@@ -114,7 +116,8 @@ def find_caller(stack_info=False, stacklevel=1):
if six.PY2:
rv = (filename, f.f_lineno, co.co_name)
- else: # python 3, new stack_info processing and extra tuple return value
+ else:
+ # python 3, new stack_info processing and extra tuple return value
sinfo = None
if stack_info:
sio = io.StringIO()
