From 4de492fb8401990519375853f206d9115d6f853b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Saad-Dupuy Date: Mon, 14 Jul 2014 16:51:33 +0200 Subject: [PATCH] fix(burn_after_reading): fixes self references in classmethods --- zerobin/paste.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerobin/paste.py b/zerobin/paste.py index 578f7fa..dfc8a56 100644 --- a/zerobin/paste.py +++ b/zerobin/paste.py @@ -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. """