Skip to content

Commit

Permalink
Merge pull request #1354 from nicktimko/patch-1
Browse files Browse the repository at this point in the history
Avoid DeprecationWarning about ABC in Python 3.x
  • Loading branch information
sloria committed Aug 20, 2019
2 parents 3f62533 + 59e1ac8 commit ac89039
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/marshmallow/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

from __future__ import unicode_literals

import collections

from marshmallow.utils import is_collection, missing, set_value
from marshmallow.compat import text_type, iteritems
from marshmallow.compat import text_type, iteritems, Mapping
from marshmallow.exceptions import (
ValidationError,
)
Expand Down Expand Up @@ -250,7 +248,7 @@ def deserialize(self, data, fields_dict, many=False, partial=False,

ret = dict_class()

if not isinstance(data, collections.Mapping):
if not isinstance(data, Mapping):
errors = self.get_errors(index=index)
msg = 'Invalid input type.'
self.error_field_names = [SCHEMA]
Expand Down

0 comments on commit ac89039

Please sign in to comment.