Skip to content

Commit

Permalink
codecheck: fix flake8 issues with versions >=3.8.3
Browse files Browse the repository at this point in the history
Fixes:

| grml2usb:920:17: F523 '...'.format(...) has unused arguments at position(s): 0
| grml2usb:1954:57: E741 ambiguous variable name 'l'

Thanks: Florian Apolloner for feedback
  • Loading branch information
mika committed Jun 18, 2020
1 parent 44f3b78 commit 9e7dd96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grml2usb
Expand Up @@ -918,7 +918,7 @@ def mount(source, target, mount_options):
if x.startswith(source):
raise CriticalException(
(
"Error executing mount: %s already mounted - "
"Error executing mount: {0} already mounted - "
"please unmount before invoking grml2usb"
).format(source)
)
Expand Down Expand Up @@ -1953,7 +1953,7 @@ def handle_mbr(device):
break

if not mbrcode:
str_locations = " or ".join(['"%s"' % l for l in mbr_locations])
str_locations = " or ".join(['"%s"' % x for x in mbr_locations])
logging.error("Cannot find syslinux MBR, install it at %s)", str_locations)
raise CriticalException(
"syslinux MBR can not be found at %s." % str_locations
Expand Down

0 comments on commit 9e7dd96

Please sign in to comment.