Skip to content

Fix deprecation warnings #8

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

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

uniphil
Copy link
Contributor

@uniphil uniphil commented Apr 4, 2021

A number of deprecation warnings are currently raised by this library -- this PR fixes the ones I was experiencing.

Downsides:

  • updating leaves python2 compatibility behind
  • pushes the minimum compatible version of python-markdown to 3.0.0

The part that I'm least confident in is the priority set during pattern registration. It's not entirely clear to me what it should be, but the proposed configuration sets it lower than all built-in priorities. I think the old version without explicit priority defaulted to a low value?

The tests pass for me, but I had a bit of trouble dealing with tox and travis. I have a follow-up PR which swaps travis for Github Actions if you're interested, since travis is killing their free tier 😢

For `python-markdown`, this means bumping the minimum supported version to
3.0.0. For system dependencies, it means leaving python2 behind.
@uniphil uniphil mentioned this pull request Apr 4, 2021
@waylan waylan merged commit 7b3a23c into Python-Markdown:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants