1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

fix(burn_after_reading): fixes self references in classmethods

This commit is contained in:
Jean-Christophe Saad-Dupuy 2014-07-14 16:51:33 +02:00
parent 1c6b923f19
commit 4de492fb84

View File

@ -294,7 +294,7 @@ class Paste(object):
@classmethod
def purge(self, path=settings.PASTE_FILES_ROOT):
def purge(cls, path=settings.PASTE_FILES_ROOT):
"""
Purge the content folder
Return the number of paste deleted.
@ -318,7 +318,7 @@ class Paste(object):
return 'burn_after_reading' in str(self.expiration)
@classmethod
def _purge_file(self, fname):
def _purge_file(cls, fname):
"""
Purges the given file if expired.
"""