Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
a5ffd19d
Commit
a5ffd19d
authored
Jun 15, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: use @implementer instead of deprecated implements() when declaring interfaces
parent
e57ef6cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
neo/client/Storage.py
neo/client/Storage.py
+5
-6
No files found.
neo/client/Storage.py
View file @
a5ffd19d
...
...
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB
import
BaseStorage
,
ConflictResolution
,
POSException
from
zope.interface
import
implement
s
from
zope.interface
import
implement
er
import
ZODB.interfaces
from
functools
import
wraps
...
...
@@ -26,11 +26,7 @@ from .exception import NEOStorageNotFoundError, NEOStorageDoesNotExistError
def
raiseReadOnlyError
(
*
args
,
**
kw
):
raise
POSException
.
ReadOnlyError
()
class
Storage
(
BaseStorage
.
BaseStorage
,
ConflictResolution
.
ConflictResolvingStorage
):
"""Wrapper class for neoclient."""
implements
(
@
implementer
(
ZODB
.
interfaces
.
IStorage
,
# ZODB.interfaces.IStorageRestoreable,
ZODB
.
interfaces
.
IStorageIteration
,
...
...
@@ -38,6 +34,9 @@ class Storage(BaseStorage.BaseStorage,
ZODB
.
interfaces
.
IExternalGC
,
ZODB
.
interfaces
.
ReadVerifyingStorage
,
)
class
Storage
(
BaseStorage
.
BaseStorage
,
ConflictResolution
.
ConflictResolvingStorage
):
"""Wrapper class for neoclient."""
def
__init__
(
self
,
master_nodes
,
name
,
read_only
=
False
,
compress
=
None
,
logfile
=
None
,
_app
=
None
,
**
kw
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment