Fix SyntaxWarning for python 3.8.0

Closes #488
pull/489/head
Lucas Hoffmann 4 years ago
parent ed40e30494
commit 0b71b41829

@ -196,18 +196,18 @@ def main():
if gui is False:
check_admin()
if uninstall is True and config.usb_disk is not '':
if uninstall is True and config.usb_disk != '':
cli_uninstall_distro()
elif uninstall is True and config.usb_disk is '':
elif uninstall is True and config.usb_disk == '':
log('\nYou must provide \'-t\' option to point to your USB disk for uninstalling a distro.\n'
'See the usage example below.')
usage()
elif config.image_path is '' and config.usb_disk is '':
elif config.image_path == '' and config.usb_disk == '':
log('\nNo option provided. See the usage below.')
usage()
elif config.cli_syslinux is True and config.usb_disk is not '':
elif config.cli_syslinux is True and config.usb_disk != '':
cli_install_syslinux()
elif config.image_path is '' or config.usb_disk is '':
elif config.image_path == '' or config.usb_disk == '':
log('\nOptions \'-i\' and \'-t\' must be supplied together. See the usage below.')
usage()
elif config.cli_dd is True:

Loading…
Cancel
Save