From e5c8d74e666a83f65e22d56515a325528edff1b7 Mon Sep 17 00:00:00 2001
From: Simon Will <will@cl.uni-heidelberg.de>
Date: Thu, 27 Sep 2018 09:45:12 +0200
Subject: [PATCH] Change faulty usage of match.groups to match.group

@zimmermann, can you please check that this is what those lines were
supposed to look like?
---
 allzweckmesser/scanner.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/allzweckmesser/scanner.py b/allzweckmesser/scanner.py
index 903040e..fc2e7bd 100644
--- a/allzweckmesser/scanner.py
+++ b/allzweckmesser/scanner.py
@@ -440,7 +440,7 @@ def generate_synizesis(reading):
                 in_syllables = match.start() < len(syl.text) < match.end()
                 
                 if in_syllables:
-                    syn_list.append([syl.id, other_syl.id, new_text, match.groups(0)])
+                    syn_list.append([syl.id, other_syl.id, new_text, match.group(0)])
             else:
                 continue
                 
@@ -579,11 +579,11 @@ def make_elisions(verse, old = False):
                         next_syllable.phenomena['apheresis'] = apheresis
                         next_syllable.syllable_length = 0
                         if reading.tokens[i+1].text in {'est', 'estis'}:
-                            pl = Phenomenon(chars=m.groups(0)+" est")
+                            pl = Phenomenon(chars=m.group(0)+" est")
                             this_syllable.phenomena['positional_lengthening'] = pl
                             this_syllable.syllable_length = 2
-                        elif reading.tokens[i+1].text in {'es'} and 'm' in m.groups(1):
-                            pl = Phenomenon(chars=m.groups(0)+" es")
+                        elif reading.tokens[i+1].text in {'es'} and 'm' in m.group(1):
+                            pl = Phenomenon(chars=m.group(0)+" es")
                             this_syllable.phenomena['positional_lengthening'] = pl
                             this_syllable.syllable_length = 2
                             
-- 
GitLab