From 6d99ecb8d9fd7481c1ded7919bc5b32c1a02a539 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 26 Sep 2011 18:28:24 +0000 Subject: [PATCH] Fix the following problem with Python 2.4: Traceback (most recent call last): File "/opt/src/lyx-2.0.x/lib/scripts/lyxpreview2bitmap.py", line 416, in ? exit(main(sys.argv)[0]) TypeError: 'str' object is not callable git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39771 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/lyxpreview2bitmap.py | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/scripts/lyxpreview2bitmap.py index dbc5d566f6..49a7521dd3 100755 --- a/lib/scripts/lyxpreview2bitmap.py +++ b/lib/scripts/lyxpreview2bitmap.py @@ -413,4 +413,4 @@ def main(argv): return (0, dvipng_metrics) if __name__ == "__main__": - exit(main(sys.argv)[0]) + sys.exit(main(sys.argv)[0]) diff --git a/status.20x b/status.20x index b15e62f1aa..70b335930f 100644 --- a/status.20x +++ b/status.20x @@ -131,6 +131,8 @@ What's new - Fix instant preview when external files are loaded in the preamble, e.g., through the \input LaTeX command. +- Fix instant preview when using Python version 2.4 or lower. + * ADVANCED FIND AND REPLACE -- 2.39.5