Browse Source

fix bug under py3

dev
破娃酱 8 years ago
parent
commit
68693d5ec7
  1. 2
      db_transfer.py

2
db_transfer.py

@ -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…
Cancel
Save