Skip to content

Commit

Permalink
Fix lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mik3y committed Jan 3, 2015
1 parent 63b58e7 commit cbb4ead
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pykeg/util/bugreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -185,4 +185,4 @@ def take_bugreport():


if __name__ == '__main__':
sys.exit(take_bugreport())
sys.exit(take_bugreport())

0 comments on commit cbb4ead

Please sign in to comment.