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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
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
Show 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 @@
...
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB
import
BaseStorage
,
ConflictResolution
,
POSException
from
ZODB
import
BaseStorage
,
ConflictResolution
,
POSException
from
zope.interface
import
implement
s
from
zope.interface
import
implement
er
import
ZODB.interfaces
import
ZODB.interfaces
from
functools
import
wraps
from
functools
import
wraps
...
@@ -26,11 +26,7 @@ from .exception import NEOStorageNotFoundError, NEOStorageDoesNotExistError
...
@@ -26,11 +26,7 @@ from .exception import NEOStorageNotFoundError, NEOStorageDoesNotExistError
def
raiseReadOnlyError
(
*
args
,
**
kw
):
def
raiseReadOnlyError
(
*
args
,
**
kw
):
raise
POSException
.
ReadOnlyError
()
raise
POSException
.
ReadOnlyError
()
class
Storage
(
BaseStorage
.
BaseStorage
,
@
implementer
(
ConflictResolution
.
ConflictResolvingStorage
):
"""Wrapper class for neoclient."""
implements
(
ZODB
.
interfaces
.
IStorage
,
ZODB
.
interfaces
.
IStorage
,
# ZODB.interfaces.IStorageRestoreable,
# ZODB.interfaces.IStorageRestoreable,
ZODB
.
interfaces
.
IStorageIteration
,
ZODB
.
interfaces
.
IStorageIteration
,
...
@@ -38,6 +34,9 @@ class Storage(BaseStorage.BaseStorage,
...
@@ -38,6 +34,9 @@ class Storage(BaseStorage.BaseStorage,
ZODB
.
interfaces
.
IExternalGC
,
ZODB
.
interfaces
.
IExternalGC
,
ZODB
.
interfaces
.
ReadVerifyingStorage
,
ZODB
.
interfaces
.
ReadVerifyingStorage
,
)
)
class
Storage
(
BaseStorage
.
BaseStorage
,
ConflictResolution
.
ConflictResolvingStorage
):
"""Wrapper class for neoclient."""
def
__init__
(
self
,
master_nodes
,
name
,
read_only
=
False
,
def
__init__
(
self
,
master_nodes
,
name
,
read_only
=
False
,
compress
=
None
,
logfile
=
None
,
_app
=
None
,
**
kw
):
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