don't use six

This commit is contained in:
Matthias Urlichs committed 2019-01-27 17:49:20 +01:00
1 parent 41fab8a36c
commit e00375e586
1 file changed
+2 -4
+2 -4
View File
@@ -5,8 +5,7 @@ __author__ = "Marc Hannappel <salandora@gmail.com>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License"
import six
from future.utils import with_metaclass
from flask import g, abort
from flask_babel import gettext
from flask_principal import Permission, PermissionDenied, RoleNeed, Need
@@ -250,8 +249,7 @@ class PermissionsMetaClass(type):
return None
@six.add_metaclass(PermissionsMetaClass)
class Permissions(object):
class Permissions(with_metaclass(PermissionsMetaClass)):
# Special permission
ADMIN = OctoPrintPermission("Admin",