On 2019/01/25 19:32, Johannes Berg wrote:
Similarly, bytes() is better as b'' I think. And maybe we should think about making everything bytes throughout. You have a LOT of things like this here, where you do extra="pass=%s" % binascii.hexlify("qwertyuiop".encode()).decode() If we expected extra to instead be bytes (rather than string), we'd just have extra=b"pass=%s" % binascii.hexlify(b"qwertyuiop") which IMHO is way more readable.
Same as 0031. Masashi Honma. _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap