22
22
__all__ = ('ObjectDBR' , 'ObjectDBW' , 'FileDBBase' , 'CompoundDB' , 'CachingDB' )
23
23
24
24
25
- class ObjectDBR ( object ) :
25
+ class ObjectDBR :
26
26
27
27
"""Defines an interface for object database lookup.
28
28
Objects are identified either by their 20 byte bin sha"""
@@ -63,7 +63,7 @@ def sha_iter(self):
63
63
#} END query interface
64
64
65
65
66
- class ObjectDBW ( object ) :
66
+ class ObjectDBW :
67
67
68
68
"""Defines an interface to create objects in the database"""
69
69
@@ -105,7 +105,7 @@ def store(self, istream):
105
105
#} END edit interface
106
106
107
107
108
- class FileDBBase ( object ) :
108
+ class FileDBBase :
109
109
110
110
"""Provides basic facilities to retrieve files of interest, including
111
111
caching facilities to help mapping hexsha's to objects"""
@@ -117,7 +117,7 @@ def __init__(self, root_path):
117
117
**Note:** The base will not perform any accessablity checking as the base
118
118
might not yet be accessible, but become accessible before the first
119
119
access."""
120
- super (FileDBBase , self ).__init__ ()
120
+ super ().__init__ ()
121
121
self ._root_path = root_path
122
122
123
123
#{ Interface
@@ -133,7 +133,7 @@ def db_path(self, rela_path):
133
133
#} END interface
134
134
135
135
136
- class CachingDB ( object ) :
136
+ class CachingDB :
137
137
138
138
"""A database which uses caches to speed-up access"""
139
139
@@ -176,7 +176,7 @@ def _set_cache_(self, attr):
176
176
elif attr == '_db_cache' :
177
177
self ._db_cache = dict ()
178
178
else :
179
- super (CompoundDB , self )._set_cache_ (attr )
179
+ super ()._set_cache_ (attr )
180
180
181
181
def _db_query (self , sha ):
182
182
""":return: database containing the given 20 byte sha
0 commit comments