Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.9 and fix deprecation warning #254

Merged
merged 2 commits into from
Jul 11, 2021

Conversation

olii
Copy link
Contributor

@olii olii commented Mar 4, 2021

The library is compatible with Python 3.9. I just enabled the tests in Tox and added a classifier string.

The second improvement is a fix for: #248

olii added 2 commits March 4, 2021 01:41
This warning is shown:
```
/opt/appuser/.local/lib/python3.9/site-packages/pyhocon/config_parser.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

-- Docs: https://docs.pytest.org/en/stable/warnings.html
```

`imp.find_module()` (https://docs.python.org/3/library/imp.html#imp.find_module) was
deprecated since version 3.3.
However Pyhocon has no support for Python 3.3. We can use the alternative function
`importlib.util.find_spec()` (https://docs.python.org/3/library/importlib.html#importlib.util.find_spec)
which was added in Python 3.4 as advised in the docs.

See:chimpler#248
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.395% when pulling 5cff474 on olii:master into 07758b8 on chimpler:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 95.395% when pulling 5cff474 on olii:master into 07758b8 on chimpler:master.

@coveralls
Copy link

coveralls commented Mar 4, 2021

Coverage Status

Coverage increased (+0.9%) to 96.296% when pulling 5cff474 on olii:master into 07758b8 on chimpler:master.

@mkujbus
Copy link

mkujbus commented Mar 24, 2021

Can we merge this in please?

@olii
Copy link
Contributor Author

olii commented May 3, 2021

Any update on this, please?

@darthbear darthbear merged commit df94df9 into chimpler:master Jul 11, 2021
@darthbear
Copy link
Member

Thank you @olii!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants