#31025: Deprecation warning when building the docs ------------------------------------------------+------------------------ Reporter: Baptiste Mispelon | Owner: nobody Type: Cleanup/optimization | Status: new Component: Documentation | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ------------------------------------------------+------------------------ I noticed a deprecation warning while building the documentation locally today: {{{ ./django/docs/_ext/djangodocs.py:260: RemovedInSphinx30Warning: HTMLTranslator.highlightlinenothreshold is deprecated. linenos = win_text.count('\n') >= self.highlightlinenothreshold - 1 }}}
Looks like the `highlightlinenothreshold` property is going away in Sphinx 3.0. Luckily it looks like the fix should be straightforward (`highlightlinenothreshold` was basically an alias for `sys.maxsize`). [1] PR incoming. [1] https://github.com/sphinx- doc/sphinx/commit/61098a0ae2e696a804459d36bd74ca57db76eda5#diff- 9ae39fbf16dabc27af998b9c0a6968a0L977 -- Ticket URL: <https://code.djangoproject.com/ticket/31025> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.c80477f2faaf25d4dfd211d7bcf2cbb7%40djangoproject.com.