Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3.10 support #167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aioriak/datatypes/map.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .datatype import Datatype
from . import TYPES
from collections import Mapping
from collections.abc import Mapping
from riak.util import lazy_property


Expand Down
2 changes: 1 addition & 1 deletion aioriak/datatypes/register.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections import Sized
from collections.abc import Sized
from aioriak.datatypes.datatype import Datatype
from aioriak.datatypes import TYPES

Expand Down
4 changes: 2 additions & 2 deletions aioriak/datatypes/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aioriak.datatypes import TYPES


class Set(collections.Set, Datatype):
class Set(collections.abc.Set, Datatype):
'''A convergent datatype representing a Set with observed-remove
semantics. Currently strings are the only supported value type.

Expand Down Expand Up @@ -93,7 +93,7 @@ def _coerce_value(self, new_value):
return frozenset(new_value)

def _check_type(self, new_value):
if not isinstance(new_value, collections.Iterable):
if not isinstance(new_value, collections.abc.Iterable):
return False
for element in new_value:
if not isinstance(element, str):
Expand Down
2 changes: 1 addition & 1 deletion aioriak/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _encode_link_field(value):

async def create_transport(host='localhost', port=8087, loop=None):
reader, writer = await asyncio.open_connection(
host, port, loop=loop)
host, port)
conn = RiakPbcAsyncTransport(reader, writer, loop=loop)
return conn

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
riak==2.7.0
riak @ git+https://github.com/StreetHawkInc/riak-python-client.git@master