From d83d68ab9934dc73db2ad2140501d3301e3762bf Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:43:58 +0000 Subject: [PATCH] Reorder directory_parsing Put data directories in standard order within directory_parsing. For human, should not affect computation. --- pefile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pefile.py b/pefile.py index f804678..04a76a1 100644 --- a/pefile.py +++ b/pefile.py @@ -3717,16 +3717,16 @@ def parse_data_directories( """ directory_parsing = ( - ("IMAGE_DIRECTORY_ENTRY_IMPORT", self.parse_import_directory), ("IMAGE_DIRECTORY_ENTRY_EXPORT", self.parse_export_directory), + ("IMAGE_DIRECTORY_ENTRY_IMPORT", self.parse_import_directory), ("IMAGE_DIRECTORY_ENTRY_RESOURCE", self.parse_resources_directory), - ("IMAGE_DIRECTORY_ENTRY_DEBUG", self.parse_debug_directory), + ("IMAGE_DIRECTORY_ENTRY_EXCEPTION", self.parse_exceptions_directory), ("IMAGE_DIRECTORY_ENTRY_BASERELOC", self.parse_relocations_directory), + ("IMAGE_DIRECTORY_ENTRY_DEBUG", self.parse_debug_directory), ("IMAGE_DIRECTORY_ENTRY_TLS", self.parse_directory_tls), ("IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG", self.parse_directory_load_config), - ("IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT", self.parse_delay_import_directory), ("IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT", self.parse_directory_bound_imports), - ("IMAGE_DIRECTORY_ENTRY_EXCEPTION", self.parse_exceptions_directory), + ("IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT", self.parse_delay_import_directory), ) if directories is not None: