Commit a50f7942 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki

Fix encoding handling in astakos commands

parent 6f6d7b46
......@@ -65,4 +65,4 @@ class Command(BaseCommand):
for key, val in sorted(kv.items()):
line = '%s: %s\n' % (key.rjust(18), val)
self.stdout.write(line.encode('utf8'))
self.stdout.write(line)
......@@ -76,4 +76,4 @@ class Command(NoArgsCommand):
else:
line = ' '.join(f.rjust(w) for f, w in zip(fields, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
......@@ -75,7 +75,7 @@ class Command(BaseCommand):
for project in projects:
line = ' '.join(f.rjust(w) for f, w in zip(project, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
if execute:
self.stdout.write('%d projects have been terminated.\n' %(length,))
......
......@@ -89,4 +89,4 @@ class Command(NoArgsCommand):
else:
line = ' '.join(f.rjust(w) for f, w in zip(fields, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
......@@ -78,7 +78,7 @@ class Command(BaseCommand):
def show_info(self, info):
for key, val in info.items():
line = '%s: %s\n' % (key.rjust(22), val)
self.stdout.write(line.encode('utf8'))
self.stdout.write(line)
self.stdout.write('\n')
......
......@@ -69,4 +69,4 @@ class Command(NoArgsCommand):
else:
line = ' '.join(f.rjust(w) for f, w in zip(fields, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
......@@ -72,4 +72,4 @@ class Command(NoArgsCommand):
else:
line = ' '.join(f.rjust(w) for f, w in zip(fields, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
......@@ -92,4 +92,4 @@ class Command(NoArgsCommand):
else:
line = ' '.join(f.rjust(w) for f, w in zip(fields, columns))
self.stdout.write(line.encode('utf8') + '\n')
self.stdout.write(line + '\n')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment