diff options
author | Adam Gross <grossag@vmware.com> | 2020-11-06 17:46:12 (GMT) |
---|---|---|
committer | Adam Gross <grossag@vmware.com> | 2020-11-06 17:46:12 (GMT) |
commit | cc7b28e50655960e7aab2dd8581f427a0920bf38 (patch) | |
tree | 3c9e36a05f4069bf2e8699e351043254c3edd1da /SCons/Scanner/LaTeX.py | |
parent | 450b28367cdcbf10f855e43e0571915ebf9f09ca (diff) | |
parent | ebe6e9b1b2fedbe3dd44c07aa2b6739d4079879e (diff) | |
download | SCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.zip SCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.tar.gz SCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.tar.bz2 |
Merge branch 'master' into topic/grossag/newhashes
Diffstat (limited to 'SCons/Scanner/LaTeX.py')
-rw-r--r-- | SCons/Scanner/LaTeX.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/SCons/Scanner/LaTeX.py b/SCons/Scanner/LaTeX.py index a85592e..73f0035 100644 --- a/SCons/Scanner/LaTeX.py +++ b/SCons/Scanner/LaTeX.py @@ -1,11 +1,6 @@ -"""SCons.Scanner.LaTeX - -This module implements the dependency scanner for LaTeX code. - -""" - +# MIT License # -# __COPYRIGHT__ +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -25,9 +20,8 @@ This module implements the dependency scanner for LaTeX code. # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +"""Dependency scanner for LaTeX code.""" import os.path import re @@ -96,7 +90,6 @@ class FindENVPathDirs: return tuple(dir.Rfindalldirs(path)) - def LaTeXScanner(): """ Return a prototype Scanner instance for scanning LaTeX source files @@ -109,6 +102,7 @@ def LaTeXScanner(): recursive = 0) return ds + def PDFLaTeXScanner(): """ Return a prototype Scanner instance for scanning LaTeX source files @@ -121,9 +115,9 @@ def PDFLaTeXScanner(): recursive = 0) return ds + class LaTeX(SCons.Scanner.Base): - """ - Class for scanning LaTeX files for included files. + """Class for scanning LaTeX files for included files. Unlike most scanners, which use regular expressions that just return the included file name, this returns a tuple consisting |