This has an issue with str vs. bytes, fix it.
Reported-by: Mark J Hewitt <mjh@idnet.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
out = byte_stream(sys.stdout)
if opt.date:
out = byte_stream(sys.stdout)
if opt.date:
- out.write(version.date.split(' ')[0] + b'\n')
+ out.write(version.date.split(b' ')[0] + b'\n')
elif opt.commit:
out.write(version.commit + b'\n')
else:
elif opt.commit:
out.write(version.commit + b'\n')
else: