Commit bd2472ac authored by Jim Fulton's avatar Jim Fulton

Cleaned up trailing whitespave

parent e30c3f37
############################################################################## ##############################################################################
# #
# Copyright (c) Zope Corporation and Contributors. # Copyright (c) Zope Foundation and Contributors.
# All Rights Reserved. # All Rights Reserved.
# #
# This software is subject to the provisions of the Zope Public License, # This software is subject to the provisions of the Zope Public License,
...@@ -28,7 +28,7 @@ import ZODB.utils ...@@ -28,7 +28,7 @@ import ZODB.utils
import zope.interface import zope.interface
class MappingStorage(object): class MappingStorage(object):
zope.interface.implements( zope.interface.implements(
ZODB.interfaces.IStorage, ZODB.interfaces.IStorage,
ZODB.interfaces.IStorageIteration, ZODB.interfaces.IStorageIteration,
...@@ -50,7 +50,7 @@ class MappingStorage(object): ...@@ -50,7 +50,7 @@ class MappingStorage(object):
###################################################################### ######################################################################
# Preconditions: # Preconditions:
def opened(self): def opened(self):
"""The storage is open """The storage is open
""" """
...@@ -94,7 +94,7 @@ class MappingStorage(object): ...@@ -94,7 +94,7 @@ class MappingStorage(object):
if tid_data: if tid_data:
return tid_data.maxKey() return tid_data.maxKey()
raise ZODB.POSException.POSKeyError(oid) raise ZODB.POSException.POSKeyError(oid)
# ZODB.interfaces.IStorage # ZODB.interfaces.IStorage
@ZODB.utils.locked(opened) @ZODB.utils.locked(opened)
def history(self, oid, size=1): def history(self, oid, size=1):
...@@ -124,7 +124,7 @@ class MappingStorage(object): ...@@ -124,7 +124,7 @@ class MappingStorage(object):
def iterator(self, start=None, end=None): def iterator(self, start=None, end=None):
for transaction_record in self._transactions.values(start, end): for transaction_record in self._transactions.values(start, end):
yield transaction_record yield transaction_record
# ZODB.interfaces.IStorage # ZODB.interfaces.IStorage
@ZODB.utils.locked(opened) @ZODB.utils.locked(opened)
def lastTransaction(self): def lastTransaction(self):
...@@ -165,7 +165,7 @@ class MappingStorage(object): ...@@ -165,7 +165,7 @@ class MappingStorage(object):
else: else:
raise ZODB.POSException.POSKeyError(oid) raise ZODB.POSException.POSKeyError(oid)
# ZODB.interfaces.IStorage # ZODB.interfaces.IStorage
@ZODB.utils.locked(opened) @ZODB.utils.locked(opened)
def loadSerial(self, oid, serial): def loadSerial(self, oid, serial):
...@@ -189,7 +189,7 @@ class MappingStorage(object): ...@@ -189,7 +189,7 @@ class MappingStorage(object):
def pack(self, t, referencesf, gc=True): def pack(self, t, referencesf, gc=True):
if not self._data: if not self._data:
return return
stop = `ZODB.TimeStamp.TimeStamp(*time.gmtime(t)[:5]+(t%60,))` 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 is not None and self._last_pack >= stop:
if self._last_pack == stop: if self._last_pack == stop:
...@@ -312,7 +312,7 @@ class MappingStorage(object): ...@@ -312,7 +312,7 @@ class MappingStorage(object):
self._transaction = None self._transaction = None
del self._tdata del self._tdata
self._commit_lock.release() self._commit_lock.release()
# ZEO.interfaces.IServeable # ZEO.interfaces.IServeable
@ZODB.utils.locked(opened) @ZODB.utils.locked(opened)
def tpc_transaction(self): 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