python3 compatibility + webapp to flask refactoring

This commit is contained in:
Kaan Soral
2024-01-27 20:37:44 +03:00
parent 5180a9c31c
commit 53b3de28ab
81 changed files with 11213 additions and 1085 deletions
+8 -2
View File
@@ -10,13 +10,19 @@ try:
# When cStringIO is available
import cStringIO as StringIO
except ImportError:
import StringIO
try:
import StringIO
except:
from io import StringIO #for Python 3
try:
from urlparse import parse_qsl
except ImportError:
# Python < 2.6
from cgi import parse_qsl
try:
from cgi import parse_qsl
except:
from urllib.parse import parse_qsl #for Python 3
try:
import json