Skip to content

Commit ca408b8

Browse files
Dep warning with importing from collections
1 parent ce92f37 commit ca408b8

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)