Skip to content

Import MutableMapping from collections.abc instead of collections #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libtmux/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
~~~~~~~~~~~~~~

"""
import collections
import collections.abc
import logging
import os
import re
Expand Down Expand Up @@ -231,9 +231,9 @@ def __init__(self, *args, **kwargs):
logger.debug('self.stdout for %s: \n%s' % (' '.join(cmd), self.stdout))


class TmuxMappingObject(collections.MutableMapping):
class TmuxMappingObject(collections.abc.MutableMapping):

"""Base: :py:class:`collections.MutableMapping`.
"""Base: :py:class:`collections.abc.MutableMapping`.

Convenience container. Base class for :class:`Pane`, :class:`Window`,
:class:`Session` and :class:`Server`.
Expand Down