Skip to content

Commit 87632a7

Browse files
authored
Merge pull request #16 from nelsonjchen/python3
Add python 3 compatibility
2 parents 935b891 + 5230e07 commit 87632a7

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy