From 3d3ea935828704ba4ec20321047016917ed9e1ce Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Fri, 21 Jun 2024 08:16:39 +0100 Subject: [PATCH] Tiny comment improvements Changes links from http to https --- pefile.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pefile.py b/pefile.py index cd8cc6e..5afea7a 100644 --- a/pefile.py +++ b/pefile.py @@ -1183,7 +1183,7 @@ def get_data(self, start=None, length=None, ignore_padding=False): `ignore_padding=True` will truncate the result in order not to return the padding (if any). - Returns bytes() under Python 3.x and set() under Python 2.7 + Returns bytes(). """ if start is None: @@ -2268,7 +2268,7 @@ def create(unwcode): # Valid FAT32 8.3 short filename characters according to: -# http://en.wikipedia.org/wiki/8.3_filename +# https://en.wikipedia.org/wiki/8.3_filename # This will help decide whether DLL ASCII names are likely # to be valid or otherwise corrupt data # @@ -3353,7 +3353,7 @@ def __parse__(self, fname, data, fast_load): def parse_rich_header(self): """Parses the rich header - see http://www.ntcore.com/files/richsign.htm for more information + see https://www.ntcore.com/files/richsign.htm for more information Structure: 00 DanS ^ checksum, checksum, checksum, checksum @@ -3454,6 +3454,8 @@ def full_load(self): This method will load the data directories which might not have been loaded if the "fast_load" option was used. + + It also parses the rich header, which may or may not present. """ self.parse_data_directories() @@ -4412,7 +4414,7 @@ def parse_debug_directory(self, rva, size): return None # apply structure according to DEBUG_TYPE - # http://www.debuginfo.com/articles/debuginfomatch.html + # https://www.debuginfo.com/articles/debuginfomatch.html # dbg_type = None @@ -6368,7 +6370,7 @@ def get_rva_from_offset(self, offset): # and we will simply return the offset as the RVA # # The case illustrating this behavior can be found at: - # http://corkami.blogspot.com/2010/01/hey-hey-hey-whats-in-your-head.html + # https://corkami.blogspot.com/2010/01/hey-hey-hey-whats-in-your-head.html # where the import table is not contained by any section # hence the RVA needs to be resolved to a raw offset return offset