mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-22 23:49:04 +00:00
StringIO is bad m'kay (python3 this and that)
This commit is contained in:
@@ -13,9 +13,9 @@ finally:
|
||||
import pickle as picklePy
|
||||
|
||||
import base64
|
||||
import io
|
||||
import json
|
||||
import re
|
||||
import StringIO
|
||||
import sys
|
||||
|
||||
from lib.core.settings import IS_WIN
|
||||
@@ -84,7 +84,7 @@ def base64unpickle(value, unsafe=False):
|
||||
self.load_reduce()
|
||||
|
||||
def loads(str):
|
||||
f = StringIO.StringIO(str)
|
||||
f = io.BytesIO(str)
|
||||
if unsafe:
|
||||
unpickler = picklePy.Unpickler(f)
|
||||
unpickler.dispatch[picklePy.REDUCE] = _
|
||||
|
||||
Reference in New Issue
Block a user