Skip to content

Commit

Permalink
Small comment corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
j-t-1 authored Sep 8, 2024
1 parent 4b3b1e2 commit 693f80f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6545,7 +6545,7 @@ def __str__(self):
return self.dump_info()

def has_relocs(self):
"""Checks if the PE file has relocation directory"""
"""Checks if the PE file has a relocation directory"""
return hasattr(self, "DIRECTORY_ENTRY_BASERELOC")

def has_dynamic_relocs(self):
Expand All @@ -6556,7 +6556,7 @@ def has_dynamic_relocs(self):
return False

def print_info(self, encoding="utf-8"):
"""Print all the PE header information in a human readable from."""
"""Print all the PE header information in a human readable form."""
print(self.dump_info(encoding=encoding))

def dump_info(self, dump=None, encoding="ascii"):
Expand Down Expand Up @@ -7956,7 +7956,7 @@ def get_overlay(self):
return None

def trim(self):
"""Return the just data defined by the PE headers, removing any overlaid data."""
"""Return just the data defined by the PE headers, removing any overlaid data."""

overlay_data_offset = self.get_overlay_data_start_offset()

Expand Down

0 comments on commit 693f80f

Please sign in to comment.