Skip to content
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

[pynsot] Patch pynsot for python 3.10 #180

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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 pynsot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

'''API Model Classes

These resource models are derrived from collections.MutableMapping and, thus,
These resource models are derrived from collections.abc.MutableMapping and, thus,
act like dicts and can instantiate with raw resource output from API as well as
simplifying by providing site_id and (usually) the natural key (cidr, hostname,
etc).
Expand Down Expand Up @@ -69,15 +69,15 @@
import six


class Resource(six.with_metaclass(ABCMeta, collections.MutableMapping)):
class Resource(six.with_metaclass(ABCMeta, collections.abc.MutableMapping)):
'''Base API Abstraction Models Class

Instances of an API abstraction model represent a single NSoT resource and
provide methods for managing the state of it upstream. They can be
instantiated by the raw returned object from NSoT API or more simply by a
few descriptive kwargs.

Resource is a subclass of :class:``collections.MutableMapping`` which makes
Resource is a subclass of :class:``collections.abc.MutableMapping`` which makes
it act as a dictionary would. The mapping represents the payload that would
be accepted by NSoT and can be manipulated as desired like a normal dict.

Expand Down