Commit 1da3b57f authored by 林檎's avatar 林檎

no need future module for python2

fix missing StringIO
parent bf8688fe
......@@ -4,8 +4,10 @@
from lxml import etree
import os
import uploader
import StringIO
try:
import StringIO
except:
from io import StringIO
def get_fb2_info(tmp_file_path, original_file_extension):
......
......@@ -10,7 +10,7 @@ import os
import logging
from werkzeug.security import generate_password_hash
from flask_babel import gettext as _
from builtins import str
#from builtins import str
dbpath = os.path.join(os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + os.sep + ".." + os.sep), "app.db")
engine = create_engine('sqlite:///{0}'.format(dbpath), echo=False)
......
......@@ -47,7 +47,7 @@ import db
from shutil import move, copyfile
from tornado.ioloop import IOLoop
from tornado import version as tornadoVersion
from builtins import str
#from builtins import str
try:
from urllib.parse import quote
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment