Skip to content

Commit

Permalink
Drop outdated python 3.6, add support for python 3.10 (#107)
Browse files Browse the repository at this point in the history
* Drop outdated python 3.6, add support for python 3.10
* Mention tested versions in README.md
  • Loading branch information
istr authored Aug 1, 2022
1 parent c6aa192 commit 831dcd3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ sudo: false
language: python
python:
- '2.7'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
install:
- pip install tox-travis Sphinx
script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface for managing zones, records, data feeds, and more.
It supports synchronous and asynchronous transports.

Both python 2.7 and 3.3+ are supported. Automated tests are currently run
against 2.7 and 3.6.
against 2.7, 3.7, 3.8, 3.9 and 3.10.

Installation
============
Expand Down
7 changes: 5 additions & 2 deletions ns1/rest/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# Copyright (c) 2014 NSONE, Inc.
#
# License under The MIT License (MIT). See LICENSE in project root.
import collections
try:
from collections.abc import Iterable
except:
from collections import Iterable
import sys

from . import resource
Expand Down Expand Up @@ -40,7 +43,7 @@ def _getAnswersForBody(self, answers):
if isinstance(answers, py_str):
answers = [answers]
# otherwise, we need an iterable
elif not isinstance(answers, collections.Iterable):
elif not isinstance(answers, Iterable):
raise Exception("invalid answers format (must be str or iterable)")
# at this point we have a list. loop through and build out the answer
# entries depending on contents
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py33
envlist = py27,py37,py38,py39,py310
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit 831dcd3

Please sign in to comment.