From a1759d0d7517345b07811b8a2e90c2462e5cf4f4 Mon Sep 17 00:00:00 2001 From: duongnguyen Date: Fri, 25 Aug 2023 14:45:27 +0700 Subject: [PATCH] [IMP] openupgrade_160: add some cases --- openupgradelib/openupgrade_160.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/openupgradelib/openupgrade_160.py b/openupgradelib/openupgrade_160.py index cf1df528..6048418b 100644 --- a/openupgradelib/openupgrade_160.py +++ b/openupgradelib/openupgrade_160.py @@ -89,13 +89,9 @@ def migrate_translations_to_jsonb(env, fields_spec): ("mr", "me"), ) -_MARGIN_PADDING_SIZE = ( - "0", "1", "2", "3", "4", "5", "auto" -) +_MARGIN_PADDING_SIZE = ("0", "1", "2", "3", "4", "5", "auto") -_MARGIN_PADDING = ( - "sm", "lg" -) +_MARGIN_PADDING = ("sm", "lg") # These replacements are from standard Bootstrap 4 to 5 _BS5_REPLACEMENTS = ( @@ -131,7 +127,7 @@ def migrate_translations_to_jsonb(env, fields_spec): *( _r("%s-%s-%s" % (t4, context, size), "%s-%s-%s" % (t5, context, size)) for (t4, t5), context, size in product( - _MARGIN_PADDING_ELEMENT_REPLACEMENT, _MARGIN_PADDING,_MARGIN_PADDING_SIZE + _MARGIN_PADDING_ELEMENT_REPLACEMENT, _MARGIN_PADDING, _MARGIN_PADDING_SIZE ) ), # Forms