From 630002d96d151aa68968ee168ab6f1148686e946 Mon Sep 17 00:00:00 2001
From: Konstantin Baierer <unixprog@gmail.com>
Date: Tue, 2 Mar 2021 13:54:15 +0100
Subject: [PATCH] minor clean up xml_reading_order

---
 qurator/eynollah/utils/xml.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/qurator/eynollah/utils/xml.py b/qurator/eynollah/utils/xml.py
index 4f41461..4ae4a06 100644
--- a/qurator/eynollah/utils/xml.py
+++ b/qurator/eynollah/utils/xml.py
@@ -1,4 +1,5 @@
 # pylint: disable=too-many-locals,wrong-import-position,too-many-lines,too-many-statements,chained-comparison,fixme,broad-except,c-extension-no-member
+# pylint: disable=invalid-name
 from lxml import etree as ET
 import numpy as np
 
@@ -47,15 +48,13 @@ def xml_reading_order(page, order_of_texts, id_of_texts, id_of_marginalia, found
     region_order_sub = ET.SubElement(region_order, 'OrderedGroup')
     region_order_sub.set('id', "ro357564684568544579089")
     indexer_region = 0
-    for vj in order_of_texts:
-        name = "coord_text_%s" % vj
+    for idx_text in order_of_texts:
         name = ET.SubElement(region_order_sub, 'RegionRefIndexed')
         name.set('index', str(indexer_region))
-        name.set('regionRef', id_of_texts[vj])
+        name.set('regionRef', id_of_texts[idx_text])
         indexer_region += 1
-    for vm in range(len(found_polygons_marginals)):
+    for  _ in found_polygons_marginals:
         id_of_marginalia.append('r%s' % indexer_region)
-        name = "coord_text_%s" % indexer_region
         name = ET.SubElement(region_order_sub, 'RegionRefIndexed')
         name.set('index', str(indexer_region))
         name.set('regionRef', 'r%s' % indexer_region)