You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both are same in python3, but not in python2. If you need to read data that contain Unicode, using open will throw errors. If you use io.open specifying the encoding and ignores error .it will work gracefully
Lot of places have open file pointers like
https://github.com/torque59/Nosql-Exploitation-Framework/blob/master/dbattacks/utils.py#L116
close all the file pointers after use.
This will save memory.
Also replace open with
io.open
which is unicode safe.using
with
will handle file pointers efficiently and you don't have to close them explicitly.example code
The text was updated successfully, but these errors were encountered: