summaryrefslogtreecommitdiffstats
path: root/SCons/Scanner/LaTeX.py
diff options
context:
space:
mode:
authorAdam Gross <grossag@vmware.com>2020-11-06 17:46:12 (GMT)
committerAdam Gross <grossag@vmware.com>2020-11-06 17:46:12 (GMT)
commitcc7b28e50655960e7aab2dd8581f427a0920bf38 (patch)
tree3c9e36a05f4069bf2e8699e351043254c3edd1da /SCons/Scanner/LaTeX.py
parent450b28367cdcbf10f855e43e0571915ebf9f09ca (diff)
parentebe6e9b1b2fedbe3dd44c07aa2b6739d4079879e (diff)
downloadSCons-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.py18
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