supybot-botchk: Fix Python 3 compatibility

This commit is contained in:
nyuszika7h 2013-02-03 14:12:21 +01:00
parent 5b432a781e
commit 1b6f1f04ec
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ if __name__ == '__main__':
inst.stdin.write('source %s' % filename + os.linesep)
cmdline = '%s --daemon %s' % (options.supybot, options.conffile)
debug('Sending cmdline to sh process.')
inst.stdin.write(cmdline + os.linesep)
inst.stdin.write(cmdline.encode('utf-8') + os.linesep.encode('utf-8'))
inst.stdin.close()
debug('Received from sh process: %r' % inst.stdout.read())
ret = inst.wait()