diff options
author | Wolfgang Langner <tds333@mailbox.org> | 2019-01-22 01:53:42 +0100 |
---|---|---|
committer | Selwin Ong <selwin.ong@gmail.com> | 2019-01-22 07:53:42 +0700 |
commit | 7a6abb4738cc056a073d7d501fffba30ac0f3ec9 (patch) | |
tree | 00ced647aed81f42f2b1b6896b71e16bc7e657f5 | |
parent | 14db0ecd264162fbd1ab894eac078ac842a935b4 (diff) | |
download | rq-7a6abb4738cc056a073d7d501fffba30ac0f3ec9.tar.gz |
Fix collections abc import deprecation warning. (#1032)
* Fix collections abc import.
Prepare for 3.8 when it is deprecated.
* Fix Pyton 2.7 build.
-rw-r--r-- | rq/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rq/utils.py b/rq/utils.py index 4d1bbea..fb3faf6 100644 --- a/rq/utils.py +++ b/rq/utils.py @@ -14,7 +14,10 @@ import importlib import logging import numbers import sys -from collections import Iterable +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable from .compat import as_text, is_python_version, string_types from .exceptions import TimeoutFormatError |