[open-ils-commits] r10030 - trunk/build/i18n/tests

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jul 14 16:55:32 EDT 2008


Author: dbs
Date: 2008-07-14 16:55:28 -0400 (Mon, 14 Jul 2008)
New Revision: 10030

Modified:
   trunk/build/i18n/tests/check_entities.py
Log:
Bugfix that prevented us from properly checking for duplicate entities


Modified: trunk/build/i18n/tests/check_entities.py
===================================================================
--- trunk/build/i18n/tests/check_entities.py	2008-07-14 20:07:12 UTC (rev 10029)
+++ trunk/build/i18n/tests/check_entities.py	2008-07-14 20:55:28 UTC (rev 10030)
@@ -62,8 +62,6 @@
     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 @@
                 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
 



More information about the open-ils-commits mailing list