diff options
| author | Neil <nyamatongwe@gmail.com> | 2026-03-19 12:00:33 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2026-03-19 12:00:33 +1100 |
| commit | 69afca435b271b42a341730802467bacf88fa444 (patch) | |
| tree | f1a7c127ab122429256a57a4d1955ae5ee2e7884 /scripts/Face.py | |
| parent | 7c601c401a26d203d191b198a52e745f6a67c1fe (diff) | |
| download | scintilla-mirror-69afca435b271b42a341730802467bacf88fa444.tar.gz | |
Remove unnecessary readlines and make FindCredits same as SciTE.
Diffstat (limited to 'scripts/Face.py')
| -rw-r--r-- | scripts/Face.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Face.py b/scripts/Face.py index 9814115f0..0278f5ac2 100644 --- a/scripts/Face.py +++ b/scripts/Face.py @@ -2,7 +2,7 @@ # Face.py - module for reading and parsing Scintilla.iface file # Implemented 2000 by Neil Hodgson neilh@scintilla.org # Released to the public domain. -# Requires Python 2.7 or later +# Requires Python 3.6 or later def sanitiseLine(line): line = line.rstrip('\n') @@ -72,7 +72,7 @@ class Face: currentComment = [] currentCommentFinished = 0 file = open(name) - for line in file.readlines(): + for line in file: line = sanitiseLine(line) if line: if line[0] == "#": |
