IntFlag is in python-3.5 by default, it's just if the enum34 package is installed that problems happen.

This commit is contained in:
Mike Auty
2019-06-28 15:29:40 +01:00
parent 81d3293414
commit 17a0e1eac8
@@ -35,8 +35,7 @@ from volatility.framework.symbols.windows import extensions
vollog = logging.getLogger(__name__)
# TODO: When python3.5 is no longer supported, make this enum.IntFlag
class PoolType(enum.IntEnum):
class PoolType(enum.IntFlag):
"""Class to maintain the different possible PoolTypes
The values must be integer powers of 2"""
@@ -260,9 +259,9 @@ class PoolScanner(plugins.PluginInterface):
# registry hives
PoolConstraint(
b'CM10',
type_name=symbol_table + constants.BANG + "_CMHIVE",
size=(800, None),
page_type=PoolType.PAGED | PoolType.NONPAGED | PoolType.FREE),
type_name = symbol_table + constants.BANG + "_CMHIVE",
size = (800, None),
page_type = PoolType.PAGED | PoolType.NONPAGED | PoolType.FREE),
]
if not tags_filter: