Avoid using print().

The print() notation makes syntax checkers go crazy for some reason (notably
when Syntastic tries to validate Python 3 code with /usr/bin/python), so
switch to a syntax that is slightly more Python 2-friendly.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
brian m. carlson 2014-01-10 00:24:50 +00:00
parent e514e62747
commit 17b3afb3cf
No known key found for this signature in database
GPG key ID: BF535D811F52F68B

View file

@ -195,7 +195,7 @@ class SHA256TransactionStore(TransactionStore):
if "w" in self._mode:
result = self._hash_file(self._filename)
fp = open(self._filename + ".checksum", "w")
print(result, file=fp)
fp.write(result + "\n")
fp.close()
class FileFormat: