update import

This commit is contained in:
Muzahid 2021-06-29 23:17:33 +05:30
parent 1000a2df5c
commit 3276af8d49
Signed by untrusted user: cis-muzahid
GPG Key ID: 1DC85E7D3AB613EA

View File

@ -11,10 +11,15 @@ import unittest
os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir() os.environ['BITMESSAGE_HOME'] = tempfile.gettempdir()
from pybitmessage.helper_sql import ( try:
from pybitmessage.helper_sql import (
sqlQuery, sql_ready, sqlStoredProcedure, SqlBulkExecute, sqlExecuteScript, sqlExecute) # noqa:E402 sqlQuery, sql_ready, sqlStoredProcedure, SqlBulkExecute, sqlExecuteScript, sqlExecute) # noqa:E402
from pybitmessage.class_sqlThread import sqlThread, UpgradeDB # noqa:E402 from pybitmessage.class_sqlThread import sqlThread, UpgradeDB # noqa:E402
from pybitmessage.addresses import encodeAddress # noqa:E402 from pybitmessage.addresses import encodeAddress # noqa:E402
except:
from ..helper_sql import sqlStoredProcedure, sql_ready, sqlExecute, SqlBulkExecute, sqlQuery, sqlExecuteScript # noqa:E402
from ..class_sqlThread import (sqlThread, UpgradeDB) # noqa:E402
from ..addresses import encodeAddress # noqa:E402
def filter_table_column(schema, column): def filter_table_column(schema, column):