From: Richard Heck Date: Sat, 3 Mar 2018 04:02:26 +0000 (-0500) Subject: Use pythonic syntax, as suggested by José. X-Git-Tag: 2.3.1~170 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=96ec4d645bd3c24f4a08d59ac6bd4f9b9264a234;p=features.git Use pythonic syntax, as suggested by José. (cherry picked from commit cec9edd34b9a43beadefd55d1755209e1acff191) --- diff --git a/lib/configure.py b/lib/configure.py index 23ec3c82dc..b3d1f697db 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -1772,8 +1772,8 @@ def rescanTeXFiles(): interpreter = sys.executable if interpreter == '': interpreter = "python" - tfp = cmdOutput(interpreter + " -tt " + '"' - + os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"') + tfp = cmdOutput('"%s" -tt "%s"' % (interpreter,\ + os.path.join(srcdir, 'scripts', 'TeXFiles.py'))) logger.info(tfp) logger.info("\tdone") diff --git a/status.23x b/status.23x index e1cfddbe3f..18ed4fac02 100644 --- a/status.23x +++ b/status.23x @@ -65,6 +65,8 @@ What's new * INTERNALS +- Properly quote python interpreter when scanning TeX files. + * DOCUMENTATION AND LOCALIZATION