Base: remove some more deprecated Py2 code

and remove deprecated void from function signature and replace 0 or NULL with nullptr
This commit is contained in:
wmayer
2021-04-26 10:29:48 +02:00
parent 142c2c2c4d
commit af16ab02a0
9 changed files with 397 additions and 452 deletions

View File

@@ -33,7 +33,7 @@
# include <cstdio>
# include <cstring>
#ifdef __GNUC__
# include <stdint.h>
# include <cstdint>
#endif
#endif
@@ -582,6 +582,7 @@ PyStreambuf::int_type PyStreambuf::underflow()
// wrong type
return traits_type::eof();
}
n = c.size();
if (n == 0) {
return traits_type::eof();