From cbb4ead6bbd1b9ae17c2fe8440d01d05038c4646 Mon Sep 17 00:00:00 2001 From: mike wakerly Date: Sat, 3 Jan 2015 14:09:57 -0500 Subject: [PATCH] Fix lint issues. --- pykeg/util/bugreport.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pykeg/util/bugreport.py b/pykeg/util/bugreport.py index 62101d7fc..d531b73b4 100644 --- a/pykeg/util/bugreport.py +++ b/pykeg/util/bugreport.py @@ -26,11 +26,10 @@ import stat import subprocess import sys -import textwrap from pykeg.core.util import get_version -SEPARATOR = '-'*72 + '\n' +SEPARATOR = '-' * 72 + '\n' def writeline(fd, data): @@ -59,7 +58,7 @@ def writelog(fd, log): traceback = log.get('traceback') if traceback: - indent = ' '* 6 + indent = ' ' * 6 fd.write(' * ') # writeline(fd, ' * Traceback') traceback = traceback.replace('\n', '\n' + indent) @@ -126,11 +125,12 @@ def should_prompt(): mode = os.fstat(sys.stdin.fileno()).st_mode if stat.S_ISFIFO(mode): - return False + return False elif stat.S_ISREG(mode): - return False + return False else: - return True + return True + def prompt_to_post(): sys.stderr.write('Bugreport collected!\n\n') @@ -185,4 +185,4 @@ def take_bugreport(): if __name__ == '__main__': - sys.exit(take_bugreport()) \ No newline at end of file + sys.exit(take_bugreport())