[LyX/master] Fix typos in Python scripts

Thibaut Cuvelier tcuvelier at lyx.org
Thu Dec 8 22:16:14 UTC 2022


commit 126f516efc65482e1fcc1e0250a11e84d2fe6f7a
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Mon Nov 21 02:13:39 2022 +0100

    Fix typos in Python scripts
---
 development/tools/generate_symbols_list.py |    2 +-
 development/tools/unicodesymbols.py        |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/development/tools/generate_symbols_list.py b/development/tools/generate_symbols_list.py
index 5b2963d..ccdfe37 100755
--- a/development/tools/generate_symbols_list.py
+++ b/development/tools/generate_symbols_list.py
@@ -44,7 +44,7 @@ def process(file):
     n = len(lines)
     for i in range(n):
         line = lines[i]
-        mo =  re.match(r'\s*%.*', line)
+        mo = re.match(r'\s*%.*', line)
         if mo != None:
             continue
         next_line = ""
diff --git a/development/tools/unicodesymbols.py b/development/tools/unicodesymbols.py
index b67364b..d507f4a 100755
--- a/development/tools/unicodesymbols.py
+++ b/development/tools/unicodesymbols.py
@@ -1,7 +1,7 @@
 #! /usr/bin/python3
 # -*- coding: utf-8 -*-
 
-# file unciodesymbols.py
+# file unicodesymbols.py
 # This file is part of LyX, the document processor.
 # Licence details can be found in the file COPYING.
 
@@ -16,6 +16,7 @@ from __future__ import print_function
 import os, re, string, sys, unicodedata
 import io
 
+
 def usage(prog_name):
     return ("Usage: %s start stop inputfile outputfile\n" % prog_name +
             "or     %s start stop <inputfile >outputfile" % prog_name)


More information about the lyx-cvs mailing list