Skip to content

Commit 5230e07

Browse files
committed
Add python 3 compatibility
1 parent 935b891 commit 5230e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

supervisor_stdout.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import sys
23

34
def write_stdout(s):
@@ -21,7 +22,7 @@ def event_handler(event, response):
2122
headers = dict([ x.split(':') for x in line.split() ])
2223
lines = data.split('\n')
2324
prefix = '%s %s | '%(headers['processname'], headers['channel'])
24-
print '\n'.join([ prefix + l for l in lines ])
25+
print('\n'.join([ prefix + l for l in lines ]))
2526

2627
if __name__ == '__main__':
2728
main()

0 commit comments

Comments
 (0)