Skip to content
Snippets Groups Projects
Commit 39d6cd3b authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[database] Modernize key search in dictionary

parent 2fd8f3e9
Branches
Tags
2 merge requests!17Merge development branch 1.5.x,!10Py3 compatibility
...@@ -652,7 +652,7 @@ class DatabaseTester: ...@@ -652,7 +652,7 @@ class DatabaseTester:
for child in self.children: for child in self.children:
child_texts = child.toString() child_texts = child.toString()
for output, text in child_texts.items(): for output, text in child_texts.items():
if texts.has_key(output): if output in texts:
texts[output] += ' ' + text texts[output] += ' ' + text
else: else:
texts[output] = text texts[output] = text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment