Don't use equality to check None (2/2)
This commit is contained in:
parent
31b10acf97
commit
71ddd02459
@ -2649,7 +2649,7 @@ def write_lock_file(name):
|
||||
if win():
|
||||
user = get_env_var('USERNAME')
|
||||
host = get_env_var('USERDOMAIN')
|
||||
if host == None:
|
||||
if host is None:
|
||||
host = ""
|
||||
else:
|
||||
host = os.uname()[1]
|
||||
|
Loading…
Reference in New Issue
Block a user