Use Python 3 way for printing

This commit is contained in:
Victor Zhestkov 2021-11-04 12:29:25 +03:00 committed by Megan Wilhite
parent 5eabcd8ee4
commit 353161ff19

View file

@ -48,8 +48,8 @@ def dpkg_post_invoke():
chksum=_get_checksum(), mtime=_get_mtime()
)
)
except (IOError, OSError) as e:
sys.stderr.write("Unable to save the cookie file: {}\n".format(e))
except OSError as e:
print("Unable to save the cookie file: %s" % (e), file=sys.stderr)
if __name__ == "__main__":