diff options
author | Jakub Stasiak <jakub@stasiak.at> | 2020-06-17 19:05:45 +0200 |
---|---|---|
committer | Jakub Stasiak <jakub@stasiak.at> | 2020-06-17 19:05:45 +0200 |
commit | 297ac7081f76224fb194a7b5350e6d129c328eb4 (patch) | |
tree | 33f20c1c7b29bac1026f76be6f9247f8a5be529c /netaddr/compat.py | |
parent | 036fc2f39ed55aa0a4e709473bb6d5f7d3b2ef4a (diff) | |
parent | 5b2807ff91640c959dc358334f626cea0e28778c (diff) | |
download | netaddr-next-master.tar.gz |
Merge branch 'rel-0.7.x'next-master
Diffstat (limited to 'netaddr/compat.py')
-rw-r--r-- | netaddr/compat.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netaddr/compat.py b/netaddr/compat.py index 0fe69ee..ad80386 100644 --- a/netaddr/compat.py +++ b/netaddr/compat.py @@ -113,3 +113,7 @@ else: raise RuntimeError( 'this module only supports Python 2.4.x or higher (including 3.x)!') +try: + from importlib import resources as _importlib_resources +except ImportError: + import importlib_resources as _importlib_resources |