Skip to content

Commit

Permalink
Fix Python 3 syntax warning (is vs ==)
Browse files Browse the repository at this point in the history
Fixes the following warning:

  ./grml2usb:1691: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if mbrcode is "":
  • Loading branch information
woky committed Feb 3, 2020
1 parent 2112d16 commit 25c3bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grml2usb
Expand Up @@ -1688,7 +1688,7 @@ def handle_mbr(device):
mbrcode = mbrpath
break

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

0 comments on commit 25c3bf7

Please sign in to comment.