Re: [PATCH 44/50] tests: Modify sigma_dut test sets for python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux