From 2d3890fd51bdaedb09c3d3742e7a58545f370244 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 30 Nov 2019 18:56:52 +0100 Subject: [PATCH] No need to use Enum for simple constants --- usr/lib/python3.6/lxcmgr/pkgmgr.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/lib/python3.6/lxcmgr/pkgmgr.py b/usr/lib/python3.6/lxcmgr/pkgmgr.py index 161e56a..6bc32d4 100644 --- a/usr/lib/python3.6/lxcmgr/pkgmgr.py +++ b/usr/lib/python3.6/lxcmgr/pkgmgr.py @@ -6,7 +6,6 @@ import requests import shutil import subprocess -from enum import Enum from pkg_resources import parse_version from . import crypto @@ -15,7 +14,7 @@ from . import lxcmgr from . import svcmgr from .paths import LXC_STORAGE_DIR, REPO_CACHE_DIR, REPO_CONF_FILE, REPO_LOCAL_FILE, REPO_LOCK, REPO_SIG_FILE -class Stage(Enum): +class Stage: QUEUED = 1 DOWNLOAD = 2 UNPACK = 3