Commit 6dfd48ea authored by Jim Fulton's avatar Jim Fulton

Cleaned up trailing whitespave

parent 26a67335
##############################################################################
#
# Copyright (c) Zope Corporation and Contributors.
# Copyright (c) Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
......@@ -28,7 +28,7 @@ import ZODB.utils
import zope.interface
class MappingStorage(object):
zope.interface.implements(
ZODB.interfaces.IStorage,
ZODB.interfaces.IStorageIteration,
......@@ -50,7 +50,7 @@ class MappingStorage(object):
######################################################################
# Preconditions:
def opened(self):
"""The storage is open
"""
......@@ -94,7 +94,7 @@ class MappingStorage(object):
if tid_data:
return tid_data.maxKey()
raise ZODB.POSException.POSKeyError(oid)
# ZODB.interfaces.IStorage
@ZODB.utils.locked(opened)
def history(self, oid, size=1):
......@@ -124,7 +124,7 @@ class MappingStorage(object):
def iterator(self, start=None, end=None):
for transaction_record in self._transactions.values(start, end):
yield transaction_record
# ZODB.interfaces.IStorage
@ZODB.utils.locked(opened)
def lastTransaction(self):
......@@ -165,7 +165,7 @@ class MappingStorage(object):
else:
raise ZODB.POSException.POSKeyError(oid)
# ZODB.interfaces.IStorage
@ZODB.utils.locked(opened)
def loadSerial(self, oid, serial):
......@@ -189,7 +189,7 @@ class MappingStorage(object):
def pack(self, t, referencesf, gc=True):
if not self._data:
return
stop = `ZODB.TimeStamp.TimeStamp(*time.gmtime(t)[:5]+(t%60,))`
if self._last_pack is not None and self._last_pack >= stop:
if self._last_pack == stop:
......@@ -312,7 +312,7 @@ class MappingStorage(object):
self._transaction = None
del self._tdata
self._commit_lock.release()
# ZEO.interfaces.IServeable
@ZODB.utils.locked(opened)
def tpc_transaction(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment