No need to use Enum for simple constants

This commit is contained in:
Disassembler 2019-11-30 18:56:52 +01:00
parent 7c25d22d41
commit 2d3890fd51
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -6,7 +6,6 @@ import requests
import shutil import shutil
import subprocess import subprocess
from enum import Enum
from pkg_resources import parse_version from pkg_resources import parse_version
from . import crypto from . import crypto
@ -15,7 +14,7 @@ from . import lxcmgr
from . import svcmgr from . import svcmgr
from .paths import LXC_STORAGE_DIR, REPO_CACHE_DIR, REPO_CONF_FILE, REPO_LOCAL_FILE, REPO_LOCK, REPO_SIG_FILE 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 QUEUED = 1
DOWNLOAD = 2 DOWNLOAD = 2
UNPACK = 3 UNPACK = 3