diff --git a/beat/backend/python/database.py b/beat/backend/python/database.py
index dda66051a38d0f6c5110c0e566b62d6739095344..8da3592a6e561261c1a8d99c324786b83788ce6a 100755
--- a/beat/backend/python/database.py
+++ b/beat/backend/python/database.py
@@ -652,7 +652,7 @@ class DatabaseTester:
             for child in self.children:
                 child_texts = child.toString()
                 for output, text in child_texts.items():
-                    if texts.has_key(output):
+                    if output in texts:
                         texts[output] += ' ' + text
                     else:
                         texts[output] = text