1) Remove Python's 'Six' package completely. #5357

2) Replace deprecated @abstractproperty with @property, @abstractmethod.
This commit is contained in:
Akshay Joshi
2022-09-26 12:47:31 +05:30
parent fc8d6d6e90
commit 0b6b2e733a
15 changed files with 37 additions and 70 deletions

View File

@@ -11,7 +11,6 @@
from abc import ABCMeta, abstractmethod
from collections import OrderedDict
import six
from flask import render_template
from flask_babel import gettext
from werkzeug.exceptions import InternalServerError
@@ -76,8 +75,7 @@ class ObjectRegistry(ABCMeta):
)
@six.add_metaclass(ObjectRegistry)
class BaseCommand(object):
class BaseCommand(object, metaclass=ObjectRegistry):
"""
class BaseCommand