From: Tomáš Virtus Date: Mon, 3 Feb 2020 11:01:42 +0000 (+0100) Subject: Fix Python 3 syntax warning (is vs ==) X-Git-Tag: v0.18.0~9^2~4 X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=25c3bf7f43e285c2a6ab997a44efd8d21a514207;hp=2112d160c764597e8464c60d8d6ebabd3880c42b Fix Python 3 syntax warning (is vs ==) Fixes the following warning: ./grml2usb:1691: SyntaxWarning: "is" with a literal. Did you mean "=="? if mbrcode is "": --- diff --git a/grml2usb b/grml2usb index 7434901..db067d4 100755 --- a/grml2usb +++ b/grml2usb @@ -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)