Skip to content

Commit 030486b

Browse files
committed
-Fix ABC deprecations, targeted for removal in python 3.8
1 parent 7971e0c commit 030486b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flask_restplus/reqparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import decimal
55
import six
66

7-
from collections import Hashable
7+
from collections.abc import Hashable
88
from copy import deepcopy
99
from flask import current_app, request
1010

flask_restplus/swagger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import re
66

77
from inspect import isclass, getdoc
8-
from collections import OrderedDict, Hashable
8+
from collections import OrderedDict
9+
from collections.abc import Hashable
910
from six import string_types, itervalues, iteritems, iterkeys
1011

1112
from flask import current_app

0 commit comments

Comments
 (0)