Don't use equality to check None (2/2)

This commit is contained in:
Sam Manzi 2016-04-13 09:54:23 +10:00
parent 31b10acf97
commit 71ddd02459

View File

@ -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]