File: errors.py

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,108 kB
  • sloc: python: 21,148; javascript: 187; makefile: 95; sh: 29; xml: 10
file content (10 lines) | stat: -rw-r--r-- 235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from __future__ import annotations

try:
    # Sphinx 3.0
    from sphinx.errors import NoUri
except ImportError:
    # Sphinx < 3.0
    from sphinx.environment import NoUri  # type: ignore[no-redef, attr-defined]

__all__ = ["NoUri"]