Skip to content

Commit d054217

Browse files
committed
Try to fix encoding issue
1 parent 262d9fc commit d054217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

celery/apps/worker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ def on_start(self):
186186

187187
# Dump configuration to screen so we have some basic information
188188
# for when users sends bug reports.
189-
sys.__stdout__.write(
190-
str(self.colored.cyan(' \n', self.startup_info())) +
191-
str(self.colored.reset(self.extra_info() or '')) + '\n'
192-
)
189+
print(''.join([
190+
string(self.colored.cyan(' \n', self.startup_info())),
191+
string(self.colored.reset(self.extra_info() or '')),
192+
]), file=sys.__stdout__)
193193
self.set_process_status('-active-')
194194
self.install_platform_tweaks(self)
195195

0 commit comments

Comments
 (0)