Be more explicit

This commit is contained in:
Brian May 2015-12-06 10:58:51 +11:00
parent a3fbf860ff
commit 7e0c1534df

View File

@ -38,7 +38,7 @@ def rewrite_etc_hosts(port):
f.write('%-30s %s\n' % ('%s %s' % (ip, name), APPEND))
f.close()
if st:
if st is not None:
os.chown(tmpname, st.st_uid, st.st_gid)
os.chmod(tmpname, st.st_mode)
else: