From df5f7a0c831a77b4c981e168a5dbbdcaaa4d90b9 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 17 Apr 2020 20:24:30 +1000 Subject: Update Python versions. Modules that are only used as top level scripts or from scripts that require Python 3.6 have Python 2.x support removed. Modules that may be called from Python 2 for PySide require Python 2.7. Documented how to run scripts. --- scripts/CheckMentioned.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scripts/CheckMentioned.py') diff --git a/scripts/CheckMentioned.py b/scripts/CheckMentioned.py index 379225fe1..c80fb2356 100644 --- a/scripts/CheckMentioned.py +++ b/scripts/CheckMentioned.py @@ -2,7 +2,7 @@ # CheckMentioned.py # Find all the symbols in scintilla/include/Scintilla.h and check if they # are mentioned in scintilla/doc/ScintillaDoc.html. -# Requires Python 2.7 or later +# Requires Python 3.6 or later import re, string, sys @@ -22,10 +22,7 @@ uninteresting = { incFileName = srcRoot + "/scintilla/include/Scintilla.h" docFileName = srcRoot + "/scintilla/doc/ScintillaDoc.html" -try: # Old Python - identCharacters = "_" + string.letters + string.digits -except AttributeError: # Python 3.x - identCharacters = "_" + string.ascii_letters + string.digits +identCharacters = "_" + string.ascii_letters + string.digits # Convert all punctuation characters except '_' into spaces. def depunctuate(s): -- cgit v1.2.3