reflink: style fix

This commit is contained in:
Rusty Bird 2018-02-16 21:47:39 +00:00
parent c871424fb0
commit 37e1aedfa3
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -187,9 +187,9 @@ class ReflinkVolume(qubes.storage.Volume):
_rename_file(self._path_dirty, self._path_clean)
def _add_revision(self):
if self.revisions_to_keep is 0:
if self.revisions_to_keep == 0:
return
if _get_file_disk_usage(self._path_clean) is 0:
if _get_file_disk_usage(self._path_clean) == 0:
return
ctime = os.path.getctime(self._path_clean)
revision = qubes.storage.isodate(int(ctime)) + 'Z'