summaryrefslogtreecommitdiff
path: root/ishtar_common/management/commands/reassociate_similar_images.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-27 20:44:52 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commit0f3229a119e53054d98c5e878a9581403628cd08 (patch)
treee07ad2e91e2544f7b2d61e8f3f653fdda26bfd52 /ishtar_common/management/commands/reassociate_similar_images.py
parentcfabd636d0a6d84e8377be3e4d041b4e75ddda9a (diff)
downloadIshtar-0f3229a119e53054d98c5e878a9581403628cd08.tar.bz2
Ishtar-0f3229a119e53054d98c5e878a9581403628cd08.zip
Migrate to python 3 - Clean old migrations and some old scripts
Diffstat (limited to 'ishtar_common/management/commands/reassociate_similar_images.py')
-rw-r--r--ishtar_common/management/commands/reassociate_similar_images.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/management/commands/reassociate_similar_images.py b/ishtar_common/management/commands/reassociate_similar_images.py
index a0483ed3a..0dbb3a765 100644
--- a/ishtar_common/management/commands/reassociate_similar_images.py
+++ b/ishtar_common/management/commands/reassociate_similar_images.py
@@ -160,8 +160,8 @@ class Command(BaseCommand):
nb_conflicted_items += 1
for attr, ref_value, other_value in conflicted_values:
conflicts.append(base_csv + [
- attr, unicode(ref_value).encode('utf-8'),
- unicode(other_value).encode('utf-8')
+ attr, str(ref_value).encode('utf-8'),
+ str(other_value).encode('utf-8')
])
continue