Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 85eebbd

Browse files
committed
Use kwargs instead of prams
1 parent 3551916 commit 85eebbd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

orbitdbapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.2.0.rc.1.1'
1+
__version__ = '0.2.0.rc.1.2'

orbitdbapi/db.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ def add(self, item, cache=None):
137137
if cache: self.__cache[entry_hash] = item
138138
return entry_hash
139139

140-
def iterator_raw(self, params):
140+
def iterator_raw(self, **kwargs):
141141
if self.__enforce_caps and not self.iterable:
142142
raise CapabilityError('Db {} does not have remove capability'.format(self.__dbname))
143143
endpoint = '/'.join(['db', self.__id_safe, 'rawiterator'])
144-
return self.__client._call('get', endpoint, params)
144+
return self.__client._call('get', endpoint, kwargs)
145145

146-
def iterator(self, params):
146+
def iterator(self, **kwargs):
147147
if self.__enforce_caps and not self.iterable:
148148
raise CapabilityError('Db {} does not have remove capability'.format(self.__dbname))
149149
endpoint = '/'.join(['db', self.__id_safe, 'iterator'])
150-
return self.__client._call('get', endpoint, params)
150+
return self.__client._call('get', endpoint, kwargs)
151151

152152
def index(self):
153153
endpoint = '/'.join(['db', self.__id_safe, 'index'])

0 commit comments

Comments
 (0)