From: dbs Date: Mon, 14 Jul 2008 20:55:28 +0000 (+0000) Subject: Bugfix that prevented us from properly checking for duplicate entities X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6b0079cb72dea38d611dd7fb0466efd7809b30e4;p=Evergreen.git Bugfix that prevented us from properly checking for duplicate entities git-svn-id: svn://svn.open-ils.org/ILS/trunk@10030 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/build/i18n/tests/check_entities.py b/build/i18n/tests/check_entities.py index 784effc942..d1634a3f8a 100644 --- a/build/i18n/tests/check_entities.py +++ b/build/i18n/tests/check_entities.py @@ -62,8 +62,6 @@ def parse_entities(): prefix = os.path.commonprefix(dtd_files) for d_file in dtd_files: - if DEBUG: - print "Checking %s\n" % (d_file) # Get the shortest unique address for this file short_df = d_file[len(prefix):] @@ -105,7 +103,7 @@ def parse_entities(): continue for entry in entities[entity_key]: - if ['file'] == short_df: + if entry['file'] == short_df: print("%s:%d: Duplicate key '%s' in line [%s]" % (short_df, line_num, entity_key, line[0:-1])) continue