diff options
-rw-r--r-- | xmldiff.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -51,10 +51,10 @@ for key, value in byHandle.items(): for sekey, sevalue in subelements.items(): ensureKey(differences, key, list) if sevalue[0] is None: - differences[key].append(sekey + ' only in ours') + differences[key].append(sekey + ' only in ' + argv[1]) match = False elif sevalue[1] is None: - differences[key].append(sekey + ' only in theirs') + differences[key].append(sekey + ' only in ' + argv[2]) match = False elif sevalue[0] != sevalue[1]: differences[key].append(sekey + ' differs') @@ -64,12 +64,12 @@ for key, value in byHandle.items(): results[2].append(key) # Print results in groups -print 'Elements only in ours (' + str(len(results[0])) + '):' +print 'Elements only in ' + argv[1] + ' (' + str(len(results[0])) + '):' for e in results[0]: print ' ' + e print -print 'Elements only in theirs (' + str(len(results[1])) + '):' +print 'Elements only in ' + argv[2] + ' (' + str(len(results[1])) + '):' for e in results[1]: print ' ' + e |