diff options
Diffstat (limited to 'servo/management')
-rw-r--r-- | servo/management/commands/backup.py | 2 | ||||
-rwxr-xr-x | servo/management/commands/cron.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/servo/management/commands/backup.py b/servo/management/commands/backup.py index 28129e6..253c4fa 100644 --- a/servo/management/commands/backup.py +++ b/servo/management/commands/backup.py @@ -17,7 +17,7 @@ def write(path, header, cursor): writer.writerow(header) for row in cursor.fetchall(): - row = [unicode(s).encode('utf-8') for s in row] + row = [str(s).encode('utf-8') for s in row] writer.writerow(row) diff --git a/servo/management/commands/cron.py b/servo/management/commands/cron.py index eaed8bd..225a991 100755 --- a/servo/management/commands/cron.py +++ b/servo/management/commands/cron.py @@ -38,7 +38,7 @@ def send_table(sender, recipient, subject, table, send_empty=False): settings.EMAIL_HOST_USER = config.get('smtp_user') settings.EMAIL_HOST_PASSWORD = config.get('smtp_password') - send_mail(subject, unicode(table), sender, [recipient], fail_silently=False) + send_mail(subject, str(table), sender, [recipient], fail_silently=False) class Command(BaseCommand): |