Skip to content

Commit

Permalink
Reorder directory_parsing
Browse files Browse the repository at this point in the history
Put data directories in standard order within directory_parsing. For human, should not affect computation.
  • Loading branch information
j-t-1 authored Dec 13, 2024
1 parent 4b3b1e2 commit d83d68a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d83d68a

Please sign in to comment.