Skip to content

Commit

Permalink
Merge pull request #18 from shaib/patch-1
Browse files Browse the repository at this point in the history
Fix python 3 support
  • Loading branch information
coderanger committed Feb 2, 2021
2 parents 5eeff27 + 87d672c commit 973ba19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions supervisor_stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def main():
write_stdout('RESULT %s\n%s'%(len(data.encode("utf-8")), data)) # transition from READY to ACKNOWLEDGED

def event_handler(event, response):
response = response.decode()
line, data = response.split('\n', 1)
headers = dict([ x.split(':') for x in line.split() ])
lines = data.split('\n')
Expand Down

0 comments on commit 973ba19

Please sign in to comment.