From 37b284412ed70f5087123a847f28f914aebc0c52 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 26 Feb 2019 09:54:11 -0300 Subject: [PATCH] Removed unnecessary code (assuming python 3.6) --- sapl/legacy/migracao_dados.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sapl/legacy/migracao_dados.py b/sapl/legacy/migracao_dados.py index 1def7f9c3..b3d6063cb 100644 --- a/sapl/legacy/migracao_dados.py +++ b/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 [