Browse Source

Removed unnecessary code (assuming python 3.6)

migracao
Marcio Mazza 6 years ago
parent
commit
37b284412e
  1. 14
      sapl/legacy/migracao_dados.py

14
sapl/legacy/migracao_dados.py

@ -53,20 +53,6 @@ from sapl.utils import normalize
from .scripts.normaliza_dump_mysql import normaliza_dump_mysql
# YAML SETUP ###############################################################
def dict_representer(dumper, data):
return dumper.represent_dict(data.items())
yaml.add_representer(OrderedDict, dict_representer)
# importante para preservar a ordem ao ler yaml no python 3.5
def dict_constructor(loader, node):
return OrderedDict(loader.construct_pairs(node))
yaml.add_constructor(yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
dict_constructor)
# BASE ######################################################################
# apps to be migrated, in app dependency order (very important)
appconfs = [apps.get_app_config(n) for n in [

Loading…
Cancel
Save