Skip to content

Commit a7ec757

Browse files
authored
Merge pull request #92 from chris-erickson/patch-1
Fix depreciation warning importing from collections in python 3.7
2 parents feb5832 + ca408b8 commit a7ec757

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nameparser/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
unexpected results. See `Customizing the Parser <customize.html>`_.
3030
"""
3131
from __future__ import unicode_literals
32-
import collections
32+
from collections.abc import Set
3333
import sys
3434

3535
from nameparser.util import binary_type
@@ -45,7 +45,7 @@
4545

4646
DEFAULT_ENCODING = 'UTF-8'
4747

48-
class SetManager(collections.Set):
48+
class SetManager(Set):
4949
'''
5050
Easily add and remove config variables per module or instance. Subclass of
5151
``collections.Set``.

0 commit comments

Comments
 (0)