Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/features/latex.py: Add missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Dec 1, 2021
1 parent e41cf29 commit 8d875d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/features/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# https://www.gnu.org/licenses/
# ****************************************************************************

from . import StaticFile, Executable, FeatureTestResult
from . import StaticFile, Executable, FeatureTestResult, FeatureNotPresentError

class latex(Executable):
r"""
Expand Down Expand Up @@ -147,6 +147,8 @@ class TeXFile(StaticFile):
sage: from sage.features.latex import TeXFile
sage: TeXFile('x', 'x.tex').is_present() # optional: pdflatex
FeatureTestResult('x', True)
sage: TeXFile('nonexisting', 'fajfhjdksf-nonexisting-file.tex').is_present() # optional: pdflatex
FeatureTestResult('nonexisting', False)
"""
def __init__(self, name, filename, **kwds):
StaticFile.__init__(self, name, filename, search_path=[], **kwds)
Expand Down

0 comments on commit 8d875d5

Please sign in to comment.