Message378810
Hi all!
I was testing some static analysis tool and decided to use the HTTP module as testing ground. While running `bandit` at the client module, it detected 3 instances of using `assert` inside the code. Twice in the HTTPResponse class and once in the HTTPConnection class.
Now, I know that this will only cause any trouble when running python with the optimize settings turned on and if someone is that concerned about optimization, they probably won't be using the stdlib's HTTP implementation, but I think it would be fitting to fix this corner case.
I've written a PR that fixes this but I'm not sure if the raised exceptions and messages are ok |
|
Date |
User |
Action |
Args |
2020-10-17 12:53:09 | fbidu | set | recipients:
+ fbidu |
2020-10-17 12:53:09 | fbidu | set | messageid: <1602939189.16.0.999843550668.issue42060@roundup.psfhosted.org> |
2020-10-17 12:53:09 | fbidu | link | issue42060 messages |
2020-10-17 12:53:08 | fbidu | create | |
|