Skip to content

Commit e2aa1ad

Browse files
Merge pull request #1023 from kabilar/master
Import ABC from collections.abc for Python 3.10 compatibility
2 parents 1b3fe08 + 0a028c8 commit e2aa1ad

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Release notes
22

3+
### 0.13.5 -- May 13, 2022
4+
* Update - Import ABC from collections.abc for Python 3.10 compatibility
5+
36
### 0.13.4 -- March, 28 2022
47
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995
58
* Bugfix - Add missing `jobs` argument for multiprocessing PR #997

datajoint/blob.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,17 @@ def pack_blob(self, obj):
188188
return self.pack_decimal(obj)
189189
if isinstance(obj, uuid.UUID):
190190
return self.pack_uuid(obj)
191-
if isinstance(obj, collections.Mapping):
191+
if isinstance(obj, collections.abc.Mapping):
192192
return self.pack_dict(obj)
193193
if isinstance(obj, str):
194194
return self.pack_string(obj)
195-
if isinstance(obj, collections.ByteString):
195+
if isinstance(obj, collections.abc.ByteString):
196196
return self.pack_bytes(obj)
197-
if isinstance(obj, collections.MutableSequence):
197+
if isinstance(obj, collections.abc.MutableSequence):
198198
return self.pack_list(obj)
199-
if isinstance(obj, collections.Sequence):
199+
if isinstance(obj, collections.abc.Sequence):
200200
return self.pack_tuple(obj)
201-
if isinstance(obj, collections.Set):
201+
if isinstance(obj, collections.abc.Set):
202202
return self.pack_set(obj)
203203
if obj is None:
204204
return self.pack_none()

datajoint/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.13.4"
1+
__version__ = "0.13.5"
22

33
assert len(__version__) <= 10 # The log table limits version to the 10 characters

docs-parts/intro/Releases_lang1.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.13.5 -- May 13, 2022
2+
----------------------
3+
* Update - Import ABC from collections.abc for Python 3.10 compatibility
4+
15
0.13.4 -- March 28, 2022
26
----------------------
37
* Add - Allow reading blobs produced by legacy 32-bit compiled mYm library for matlab. PR #995

0 commit comments

Comments
 (0)