Skip to content

Commit 831dcd3

Browse files
authored
Drop outdated python 3.6, add support for python 3.10 (#107)
* Drop outdated python 3.6, add support for python 3.10 * Mention tested versions in README.md
1 parent c6aa192 commit 831dcd3

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ sudo: false
22
language: python
33
python:
44
- '2.7'
5-
- '3.6'
5+
- '3.7'
6+
- '3.8'
7+
- '3.9'
8+
- '3.10'
69
install:
710
- pip install tox-travis Sphinx
811
script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface for managing zones, records, data feeds, and more.
1616
It supports synchronous and asynchronous transports.
1717

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

2121
Installation
2222
============

ns1/rest/records.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# Copyright (c) 2014 NSONE, Inc.
33
#
44
# License under The MIT License (MIT). See LICENSE in project root.
5-
import collections
5+
try:
6+
from collections.abc import Iterable
7+
except:
8+
from collections import Iterable
69
import sys
710

811
from . import resource
@@ -40,7 +43,7 @@ def _getAnswersForBody(self, answers):
4043
if isinstance(answers, py_str):
4144
answers = [answers]
4245
# otherwise, we need an iterable
43-
elif not isinstance(answers, collections.Iterable):
46+
elif not isinstance(answers, Iterable):
4447
raise Exception("invalid answers format (must be str or iterable)")
4548
# at this point we have a list. loop through and build out the answer
4649
# entries depending on contents

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py33
2+
envlist = py27,py37,py38,py39,py310
33
skip_missing_interpreters = True
44

55
[testenv]

0 commit comments

Comments
 (0)