Skip to content

Commit

Permalink
Merge branch 'release/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
LordGaav committed Nov 12, 2019
2 parents 1574325 + c97a8aa commit 51208df
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ python:
- 3.5
- 3.6
- 3.7
- 3.8
- pypy # Python 2.7 compatible
- pypy3.5 # Python 3.5 compatible
- pypy3 # Python 3.6 compatible
Expand Down
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Nick Douma <nick.douma@cyso.nl>
Niels van Huijstee <niels.vanhuijstee@cyso.nl>
Nick Douma <n.douma@nekoconeko.nl>
Niels van Huijstee <niels.vanhuijstee@cyso.com>
Niels van Huijstee <niels@fuga.cloud>
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
CHANGES
=======

* Update ChangeLog
* Update README
* Fix Flake8 error
* Add Python 3.8 to test suite
* Avoid collections deprecation warning when using abc classes

1.3.0
-----

* Update ChangeLog and AUTHORS
* Update README
* Use yaml full\_load\_all
* Add string\_bool and string\_or\_false
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ For an up-to-date changelog, see `ChangeLog`_.
.. _ChangeLog: ChangeLog

Support for Python 3.3 was dropped in version 1.3.0 .
Support for Python 3.8 was added in version 1.3.1 .

License
-------
Expand Down
9 changes: 6 additions & 3 deletions omniconf/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@
# License along with this library. If not, see
# <http://www.gnu.org/licenses/>.

import collections
try:
from collections import abc
except ImportError: # pragma: nocover
import collections as abc

try:
string_types = (str, unicode)
except NameError: # pragma: nocover
string_types = (str, bytes)


class SeparatorSequence(collections.Sequence):
class SeparatorSequence(abc.Sequence):
"""
Splits the given string using the given separator, and provides a
the result with a read-only Sequence interface.
Expand Down Expand Up @@ -63,7 +66,7 @@ def separator_sequence(separator):
and can be used as one would normally use a (read-only) tuple or list.
"""
def factory(value):
if isinstance(value, collections.Sequence) and \
if isinstance(value, abc.Sequence) and \
not isinstance(value, string_types):
return value
return SeparatorSequence(value, separator)
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifier =
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: Jython
Programming Language :: Python :: Implementation :: PyPy
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 = setup,py27,py33,py34,py35,py36,pypy,jython,coverage,sphinx
envlist = setup,py27,py34,py35,py36,py37,py38,pypy,jython,coverage,sphinx

[testenv]
deps =
Expand Down

0 comments on commit 51208df

Please sign in to comment.