whitespace and commenting
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user