Commit aec3292e authored by Christophe Combelles's avatar Christophe Combelles

Reverted the indentation and kept the docformat

parent 7687a555
......@@ -95,7 +95,7 @@ class WeakRef(object):
...
TypeError: Weakly-referenced object has gone away
Always explicitly close databases :) :
Always explicitly close databases: :)
>>> db.close()
......@@ -144,7 +144,7 @@ class PersistentWeakKeyDictionary(Persistent):
of items is extremely lazy. See below.
We'll start by creating a PersistentWeakKeyDictionary and adding
some persistent objects to it:
some persistent objects to it.
>>> d = PersistentWeakKeyDictionary()
>>> import ZODB.tests.util
......@@ -192,7 +192,7 @@ class PersistentWeakKeyDictionary(Persistent):
[True, True, True, False]
Likewise, we can read the objects from another connection and
things still work:
things still work.
>>> conn2 = db.open()
>>> d = conn2.root()['d']
......@@ -213,7 +213,7 @@ class PersistentWeakKeyDictionary(Persistent):
>>> ZODB.tests.util.commit()
And pack the database, so that the no-longer referenced p2 is
actually removed from the database:
actually removed from the database.
>>> ZODB.tests.util.pack(db)
......@@ -231,7 +231,7 @@ class PersistentWeakKeyDictionary(Persistent):
conn1 and conn2 still have p2, because p2 is still in the caches
for those connections.
Always explicitly close databases :) :
Always explicitly close databases: :)
>>> db.close()
......@@ -271,7 +271,7 @@ class PersistentWeakKeyDictionary(Persistent):
del self.data[WeakRef(key)]
def get(self, key, default=None):
"""D.get(k[, d]) -> D[k] if k in D, else d. :
"""D.get(k[, d]) -> D[k] if k in D, else d.
>>> import ZODB.tests.util
>>> key = ZODB.tests.util.P("key")
......
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