diff --git a/django_codemod/visitors/encoding.py b/django_codemod/visitors/encoding.py index f0ecf43a..dfb825b2 100644 --- a/django_codemod/visitors/encoding.py +++ b/django_codemod/visitors/encoding.py @@ -1,11 +1,11 @@ -from django_codemod.constants import DJANGO_20, DJANGO_40 +from django_codemod.constants import DJANGO_30, DJANGO_40 from django_codemod.visitors.base import BaseSimpleFuncRenameTransformer class ForceTextToForceStrTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.encoding.force_text``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.encoding.force_text" rename_to = "django.utils.encoding.force_str" @@ -14,7 +14,7 @@ class ForceTextToForceStrTransformer(BaseSimpleFuncRenameTransformer): class SmartTextToForceStrTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.encoding.smart_text``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.encoding.smart_text" rename_to = "django.utils.encoding.smart_str" diff --git a/django_codemod/visitors/translations.py b/django_codemod/visitors/translations.py index 85e8a7e0..c318ea37 100644 --- a/django_codemod/visitors/translations.py +++ b/django_codemod/visitors/translations.py @@ -1,11 +1,11 @@ -from django_codemod.constants import DJANGO_20, DJANGO_40 +from django_codemod.constants import DJANGO_30, DJANGO_40 from django_codemod.visitors.base import BaseSimpleFuncRenameTransformer class UGetTextToGetTextTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.translation.ugettext``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.translation.ugettext" rename_to = "django.utils.translation.gettext" @@ -14,7 +14,7 @@ class UGetTextToGetTextTransformer(BaseSimpleFuncRenameTransformer): class UGetTextLazyToGetTextLazyTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.translation.ugettext_lazy``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.translation.ugettext_lazy" rename_to = "django.utils.translation.gettext_lazy" @@ -23,7 +23,7 @@ class UGetTextLazyToGetTextLazyTransformer(BaseSimpleFuncRenameTransformer): class UGetTextNoopToGetTextNoopTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.translation.ugettext_noop``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.translation.ugettext_noop" rename_to = "django.utils.translation.gettext_noop" @@ -32,7 +32,7 @@ class UGetTextNoopToGetTextNoopTransformer(BaseSimpleFuncRenameTransformer): class UNGetTextToNGetTextTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.translation.ungettext``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.translation.ungettext" rename_to = "django.utils.translation.ngettext" @@ -41,7 +41,7 @@ class UNGetTextToNGetTextTransformer(BaseSimpleFuncRenameTransformer): class UNGetTextLazyToNGetTextLazyTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.utils.translation.ungettext_lazy``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.utils.translation.ungettext_lazy" rename_to = "django.utils.translation.ngettext_lazy" diff --git a/django_codemod/visitors/urls.py b/django_codemod/visitors/urls.py index 85dd1d58..9bb379f3 100644 --- a/django_codemod/visitors/urls.py +++ b/django_codemod/visitors/urls.py @@ -1,11 +1,11 @@ -from django_codemod.constants import DJANGO_20, DJANGO_40 +from django_codemod.constants import DJANGO_30, DJANGO_40 from django_codemod.visitors.base import BaseSimpleFuncRenameTransformer class URLToRePathTransformer(BaseSimpleFuncRenameTransformer): """Resolve deprecation of ``django.conf.urls.url``.""" - deprecated_in = DJANGO_20 + deprecated_in = DJANGO_30 removed_in = DJANGO_40 rename_from = "django.conf.urls.url" rename_to = "django.urls.re_path"