fix bug under py3
This commit is contained in:
parent
7cfbe49806
commit
68693d5ec7
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class DbTransfer(TransferBase):
|
|||
import json
|
||||
config_path = get_config().MYSQL_CONFIG
|
||||
cfg = None
|
||||
with open(config_path, 'r+') as f:
|
||||
with open(config_path, 'rb+') as f:
|
||||
cfg = json.loads(f.read().decode('utf8'))
|
||||
|
||||
if cfg:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue