Skip to content

Commit 5225e94

Browse files
authored
Merge pull request #1705 from ISISComputingGroup/Ticket8297_remove_six_usage
Remove usage of six
2 parents 0132136 + 42076a8 commit 5225e94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/uk.ac.stfc.isis.ibex.opis/validate_opis.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from check_opi_format import file_iterator, DEFAULT_ROOT_DIR
22
from lxml import etree
33
from lxml.etree import LxmlError
4-
import six
54
import os.path as path
65

76
xml_parser = etree.XMLParser(remove_blank_text=True)
@@ -106,7 +105,7 @@ def check_widget_correct(widget_node):
106105
files_to_change[file_path] = root
107106

108107
if files_to_change:
109-
for file_path, root in six.iteritems(files_to_change):
108+
for file_path, root in files_to_change.items():
110109
with open(file_path, "wb") as xml_file:
111110
xml_file.write(etree.tostring(root, pretty_print=True, xml_declaration=True, encoding='UTF-8'))
112111
print("Confirm dummy button has been added correctly and re-commit")

0 commit comments

Comments
 (0)