aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2021-06-06 14:34:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2021-06-06 14:34:24 +0300
commit83bc616db700406c8254ae036ef5f41796e80a79 (patch)
tree146a8e8bcf1bfab7d771c3a26468190307e1e95b /servo/management
parentbc273f17cd8e08c6944660b8633ba41763f292b2 (diff)
downloadServo-83bc616db700406c8254ae036ef5f41796e80a79.tar.gz
Servo-83bc616db700406c8254ae036ef5f41796e80a79.tar.bz2
Servo-83bc616db700406c8254ae036ef5f41796e80a79.zip
Python 3 fixes
Diffstat (limited to 'servo/management')
-rw-r--r--servo/management/commands/backup.py2
-rwxr-xr-xservo/management/commands/cron.py2
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):