Message396860
I agree this should be closed (and I'm closing it). I don't see any reason why this function should do something other than raise TypeError if given bs=None. If you want that behavior, write a small wrapper function.
The "if not bs" check appears to be an optimization for the case of zero-length input. Hopefully the code would continue to work without that test (or instead testing for len(bs)==0), but in my opinion it's not worth the risk of removing or changing it. |
|
Date |
User |
Action |
Args |
2021-07-02 11:54:38 | eric.smith | set | recipients:
+ eric.smith, orsenthil, serhiy.storchaka, iritkatriel, asicscwcs |
2021-07-02 11:54:38 | eric.smith | set | messageid: <1625226878.73.0.414771294763.issue44520@roundup.psfhosted.org> |
2021-07-02 11:54:38 | eric.smith | link | issue44520 messages |
2021-07-02 11:54:38 | eric.smith | create | |
|