mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
supybot-botchk: Fix Python 3 compatibility
This commit is contained in:
parent
5b432a781e
commit
1b6f1f04ec
@ -132,7 +132,7 @@ if __name__ == '__main__':
|
|||||||
inst.stdin.write('source %s' % filename + os.linesep)
|
inst.stdin.write('source %s' % filename + os.linesep)
|
||||||
cmdline = '%s --daemon %s' % (options.supybot, options.conffile)
|
cmdline = '%s --daemon %s' % (options.supybot, options.conffile)
|
||||||
debug('Sending cmdline to sh process.')
|
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()
|
inst.stdin.close()
|
||||||
debug('Received from sh process: %r' % inst.stdout.read())
|
debug('Received from sh process: %r' % inst.stdout.read())
|
||||||
ret = inst.wait()
|
ret = inst.wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user