make db-{drop,init) py3 compatible

They are using the old ConfigParser library which is lowercase under
py3, so try to import the correct one if the script are run under
py3

Change-Id: I4362f55933f7dfe2198da8e5d1aa1f33d3fb821e
This commit is contained in:
Itxaka 2019-03-07 12:57:56 +01:00
parent cb021c2124
commit 8f290d3b8d
No known key found for this signature in database
GPG Key ID: 0FFB0E56C3539E24
2 changed files with 8 additions and 2 deletions

View File

@ -27,7 +27,10 @@ limitations under the License.
import os
import sys
import ConfigParser
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
import logging
from sqlalchemy import create_engine

View File

@ -27,7 +27,10 @@ limitations under the License.
import os
import sys
import ConfigParser
try:
import ConfigParser
except ImportError:
import configparser as ConfigParser
import logging
from sqlalchemy import create_engine