Skip to content

Commit

Permalink
Support Python 3.7 (#375)
Browse files Browse the repository at this point in the history
* Import collection ABC's from correct module
   They were moved into collections.abc in 3.3 and will be deprecated
   from collections in 3.8.
  • Loading branch information
kreutz-hs authored and jpadilla committed Nov 2, 2018
1 parent 72fb76e commit 2122f94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Support for Python 3.7

[v1.6.4][1.6.4]
-------------------------------------------------------------------------
### Fixed
Expand Down
6 changes: 5 additions & 1 deletion jwt/api_jwt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import json
import warnings
from calendar import timegm
from collections import Iterable, Mapping
from datetime import datetime, timedelta
try:
# Importing ABCs from collections will be removed in PY3.8
from collections.abc import Iterable, Mapping
except ImportError:
from collections import Iterable, Mapping
try:
# import required by mypy to perform type checking, not used for normal execution
from typing import Callable, Dict, List, Optional, Union # NOQA
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ commands =
deps =
flake8
flake8-import-order
pep8-naming
pep8-naming

0 comments on commit 2122f94

Please sign in to comment.