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:
parent
cb021c2124
commit
8f290d3b8d
@ -27,7 +27,10 @@ limitations under the License.
|
||||
|
||||
import os
|
||||
import sys
|
||||
try:
|
||||
import ConfigParser
|
||||
except ImportError:
|
||||
import configparser as ConfigParser
|
||||
import logging
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
|
@ -27,7 +27,10 @@ limitations under the License.
|
||||
|
||||
import os
|
||||
import sys
|
||||
try:
|
||||
import ConfigParser
|
||||
except ImportError:
|
||||
import configparser as ConfigParser
|
||||
import logging
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user