mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-07 02:07:39 +02:00
Fix up minor typo and hard depend on >= python 3.4.
This commit is contained in:
@@ -84,4 +84,4 @@ def import_files(base_module):
|
||||
# Check the python version to ensure it's suitable
|
||||
required_python_version = (3, 4)
|
||||
if sys.version_info.major != required_python_version[0] or sys.version_info.minor < required_python_version[1]:
|
||||
raise RuntimeError("Volatility framework requires python version {}.{} or greater".format(required_python_version))
|
||||
raise RuntimeError("Volatility framework requires python version {}.{} or greater".format(*required_python_version))
|
||||
|
||||
@@ -6,6 +6,7 @@ Created on 7 Feb 2013
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import enum
|
||||
import logging
|
||||
|
||||
from volatility.framework import constants, exceptions, interfaces, objects
|
||||
@@ -14,11 +15,10 @@ from volatility.framework.symbols import native, windows
|
||||
vollog = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SymbolType(object):
|
||||
# Suitably random values until we make this an Enum and require python >= 3.4
|
||||
TYPE = 143534545
|
||||
SYMBOL = 28293045
|
||||
ENUM = 395940348
|
||||
class SymbolType(enum.Enum):
|
||||
TYPE = 1
|
||||
SYMBOL = 2
|
||||
ENUM = 3
|
||||
|
||||
|
||||
class SymbolSpace(collections.abc.Mapping):
|
||||
|
||||
Reference in New Issue
Block a user