all: Fix Python comparison to None and True, and use "not in".

These are basic PEP8 recommendations.
This commit is contained in:
Christian Clauss
2023-03-08 16:17:54 +01:00
committed by Damien George
parent f3a596db7d
commit 4376c969f6
6 changed files with 12 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ def transfer_file(args):
if "250" in ftp.cwd("/flash"):
if not ftp_directory_exists(ftp, "sys"):
print("/flash/sys directory does not exist")
if not "550" in ftp.mkd("sys"):
if "550" not in ftp.mkd("sys"):
print("/flash/sys directory created")
else:
print("Error: cannot create /flash/sys directory")