From f0a3c968a71a9642d3db67d43d5804e755f8eb8d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 16 Mar 2016 15:15:12 +0000 Subject: [PATCH] Added unicode support --- RIGS/versioning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/versioning.py b/RIGS/versioning.py index 38c92936..789fc5d7 100644 --- a/RIGS/versioning.py +++ b/RIGS/versioning.py @@ -67,8 +67,8 @@ def model_compare(oldObj, newObj, excluded_keys=[]): @property def diff(self): - oldText = str(self.display_value(self._old)) or "" - newText = str(self.display_value(self._new)) or "" + oldText = unicode(self.display_value(self._old)) or "" + newText = unicode(self.display_value(self._new)) or "" dmp = diff_match_patch() diffs = dmp.diff_main(oldText, newText) dmp.diff_cleanupSemantic(diffs)