Commit 62c44838 authored by Barry Warsaw's avatar Barry Warsaw

__init__(): Add a docstring.

parent b4d418aa
...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.35 $'.split()[-2:][0] __version__ = '$Revision: 1.36 $'.split()[-2:][0]
import sys import sys
import struct import struct
...@@ -48,6 +48,11 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -48,6 +48,11 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# Overrides of base class methods # Overrides of base class methods
# #
def __init__(self, name, env=None, prefix='zodb_'): def __init__(self, name, env=None, prefix='zodb_'):
"""Initialize the Full database.
name, env, and prefix are passed straight through to the BerkeleyBase
base class constructor.
"""
self._packlock = ThreadLock.allocate_lock() self._packlock = ThreadLock.allocate_lock()
BerkeleyBase.__init__(self, name, env, prefix) BerkeleyBase.__init__(self, name, env, prefix)
......
...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.35 $'.split()[-2:][0] __version__ = '$Revision: 1.36 $'.split()[-2:][0]
import sys import sys
import struct import struct
...@@ -48,6 +48,11 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -48,6 +48,11 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# Overrides of base class methods # Overrides of base class methods
# #
def __init__(self, name, env=None, prefix='zodb_'): def __init__(self, name, env=None, prefix='zodb_'):
"""Initialize the Full database.
name, env, and prefix are passed straight through to the BerkeleyBase
base class constructor.
"""
self._packlock = ThreadLock.allocate_lock() self._packlock = ThreadLock.allocate_lock()
BerkeleyBase.__init__(self, name, env, prefix) BerkeleyBase.__init__(self, name, env, prefix)
......
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