Open sumit554 opened 2 years ago
replace import StringIO
to from io import StringIO
after replacing
Traceback (most recent call last):
File "/root/tools/JSParser/handler.py", line 5, in
already present urlparse handler.py
I get the exact same error when trying ghosts suggestion.
replace import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl, StringIO to on handler.py file
to below one
import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, pycurl from urllib.parse import urlparse from io import StringIO
Traceback (most recent call last): File "/root/tools/JSParser/handler.py", line 5, in
import safeurl, types, sys, re, mimetypes, glob, jsbeautifier, urlparse, pycurl
File "/root/tools/JSParser/safeurl.py", line 18, in
import StringIO
ModuleNotFoundError: No module named 'StringIO'
Pls help me to solve this issues