Identity is not the same thing as equality in Python

This commit is contained in:
Christian Clauss 2020-01-20 13:54:20 +01:00 committed by GitHub
parent 616548a9a8
commit 1fd972ee17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -524,7 +524,7 @@ def cli_main():
else: else:
infile = argv[1] infile = argv[1]
outfile = argv[2] outfile = argv[2]
if len(argv) is 4: if len(argv) == 4:
pidlist = argv[3].split(',') pidlist = argv[3].split(',')
else: else:
pidlist = [] pidlist = []