From bd4121448af5d9efd20d4b1a79199ced44e81ee3 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Mon, 19 Jan 2015 00:51:17 +0000 Subject: [PATCH] Add in minor optimization. --- volatility/framework/symbols/native.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility/framework/symbols/native.py b/volatility/framework/symbols/native.py index 3e9ab0208..f68a82c2d 100644 --- a/volatility/framework/symbols/native.py +++ b/volatility/framework/symbols/native.py @@ -15,11 +15,11 @@ class NativeTable(interfaces.symbols.NativeTableInterface): interfaces.symbols.NativeTableInterface.__init__(self, name, self) self._native_dictionary = copy.deepcopy(native_dictionary) self._overrides = {} - for native_type in self._native_dictionary.keys(): + for native_type in self._native_dictionary: native_class, _native_struct = self._native_dictionary[native_type] self._overrides[native_type] = native_class # Create this once early, because it may get used a lot - self._structures = set(self._native_dictionary.keys()).union( + self._structures = set(self._native_dictionary).union( set(['Enumeration', 'array', 'BitField', 'void', 'pointer'])) def get_structure_class(self, name):