Skip to content

Commit

Permalink
Fix for PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
gorgobacka committed Jun 3, 2017
1 parent b7a6c50 commit 8e50a07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions whipper/command/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def do(self):
return -1

self.program.result.isCdr = cdrdao.DetectCdr(self.device)
if self.program.result.isCdr and not getattr(self.options, 'cdr', False):
if self.program.result.isCdr and \
not getattr(self.options, 'cdr', False):
logger.critical("inserted disc seems to be a CD-R, "
"--cdr not passed")
return -1
Expand Down Expand Up @@ -307,9 +308,10 @@ def add_arguments(self):
help="whether to continue ripping if "
"the CD is unknown", default=False)
self.parser.add_argument('--cdr',
action="store_true", dest="cdr",
help="whether to continue ripping if the disc is a CD-R",
default=False)
action="store_true", dest="cdr",
help="whether to continue ripping if "
"the disc is a CD-R",
default=False)

def handle_arguments(self):
self.options.output_directory = os.path.expanduser(
Expand Down
1 change: 1 addition & 0 deletions whipper/program/cdrdao.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def DetectCdr(device):
else:
return True


def version():
"""
Return cdrdao version as a string.
Expand Down

0 comments on commit 8e50a07

Please sign in to comment.