Skip to content

Commit 3108676

Browse files
committed
Import MutableMapping from collections.abc instead of collections
Importing MutableMapping from collections is deprecated since Python 3.3 and will stop working in 3.9. See the following deprecation notice: libtmux/common.py:233: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working Hence we now import from collections.abc.
1 parent 08c8394 commit 3108676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libtmux/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
~~~~~~~~~~~~~~
77
88
"""
9-
import collections
9+
import collections.abc
1010
import logging
1111
import os
1212
import re
@@ -231,9 +231,9 @@ def __init__(self, *args, **kwargs):
231231
logger.debug('self.stdout for %s: \n%s' % (' '.join(cmd), self.stdout))
232232

233233

234-
class TmuxMappingObject(collections.MutableMapping):
234+
class TmuxMappingObject(collections.abc.MutableMapping):
235235

236-
"""Base: :py:class:`collections.MutableMapping`.
236+
"""Base: :py:class:`collections.abc.MutableMapping`.
237237
238238
Convenience container. Base class for :class:`Pane`, :class:`Window`,
239239
:class:`Session` and :class:`Server`.

0 commit comments

Comments
 (0)