Skip to content

Commit 069b444

Browse files
committed
Another UTF-8 print Python bug fix (kindly provided by Ryan Cross)
- Legacy-Id: 3422
1 parent 5c5d534 commit 069b444

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

redesign/importing/import-persons.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
# LegacyWgPassword
5959
for o in LegacyWgPassword.objects.all():
60-
print "importing LegacyWgPassword", o.pk, o.person.first_name, o.person.last_name
60+
print "importing LegacyWgPassword", o.pk, o.person.first_name.encode('utf-8'), o.person.last_name.encode('utf-8')
6161

6262
email = get_or_create_email(o, create_fake=False)
6363
if not email:
@@ -76,7 +76,7 @@
7676

7777
# LegacyLiaisonUser
7878
for o in LegacyLiaisonUser.objects.all():
79-
print "importing LegacyLiaisonUser", o.pk, o.person.first_name, o.person.last_name
79+
print "importing LegacyLiaisonUser", o.pk, o.person.first_name.encode('utf-8'), o.person.last_name.encode('utf-8')
8080

8181
email = get_or_create_email(o, create_fake=False)
8282
if not email:
@@ -95,7 +95,7 @@
9595

9696
# IESGLogin
9797
for o in IESGLogin.objects.all():
98-
print "importing IESGLogin", o.pk, o.first_name, o.last_name
98+
print "importing IESGLogin", o.pk, o.first_name.encode('utf-8'), o.last_name.encode('utf-8')
9999

100100
if not o.person:
101101
persons = PersonOrOrgInfo.objects.filter(first_name=o.first_name, last_name=o.last_name)

0 commit comments

Comments
 (0)