Fix deprecation warning in Python 3.7 (#231)
authorScott Johnson <scottjohnsoninsf@gmail.com>
Sat, 22 Jun 2019 12:16:23 +0000 (05:16 -0700)
committerEli Bendersky <eliben@users.noreply.github.com>
Sat, 22 Jun 2019 12:16:23 +0000 (05:16 -0700)
commit923c498fd2c3c9805c613f8ac33e5572b9a784e2
tree340e5d948744a100ad81b6f0d33f49a6f5e421b7
parentb66d892594dfc675c4756d8b5e9ae0040750ad13
Fix deprecation warning in Python 3.7 (#231)

$SITE_PYTHON/lib/python3.7/site-packages/elftools/construct/lib/container.py:5
 Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

This change is compatible with Python 3.3 and up, when the ABCs were
moved to collections.abc. Backward compatibility is retained through
the try/except block.
elftools/construct/lib/container.py
elftools/construct/lib/py3compat.py