prevent error that will be in python 3.8
MODIFY
appveyor.yml
appveyor.yml
-branches:
- only:
- - master
-
-skip_branch_with_pr: true
-
environment:
matrix:
- PYTHON: "C:\\Python27-x64"

MODIFY
fastavro/_validation.pyx
fastavro/_validation.pyx
@@ -4,6 +4,10 @@ import datetime
import decimal
import numbers
from uuid import UUID
+try:
+ from collections.abc import Mapping, Sequence
+except ImportError:
+ # python2
from collections import Mapping, Sequence
from . import const

MODIFY
fastavro/_validation_py.py
fastavro/_validation_py.py
@@ -2,6 +2,10 @@ import datetime
import decimal
import numbers
from uuid import UUID
+try:
+ from collections.abc import Mapping, Sequence
+except ImportError:
+ # python2
from collections import Mapping, Sequence
from fastavro.const import (

prevent error that will be in python 3.8