whitespace and commenting

This commit is contained in:
Thomas Vander Stichele
2013-01-06 15:25:51 +00:00
parent 50a1bb02b1
commit 813a41badf
2 changed files with 8 additions and 7 deletions

View File

@@ -134,11 +134,12 @@ class PersistedCache(object):
Returns the persister for the given key.
"""
persister = Persister(self._getPath(key))
if persister.object:
if hasattr(persister.object, 'instanceVersion'):
o = persister.object
# if o.instanceVersion < o.__class__.classVersion:
# persister.delete()
# FIXME: don't delete old objects atm
# if persister.object:
# if hasattr(persister.object, 'instanceVersion'):
# o = persister.object
# if o.instanceVersion < o.__class__.classVersion:
# persister.delete()
return persister

View File

@@ -20,11 +20,11 @@
# You should have received a copy of the GNU General Public License
# along with morituri. If not, see <http://www.gnu.org/licenses/>.
import os
import os.path
import math
import tempfile
import shutil
from morituri.extern.log import log