@@ -4036,7 +4036,7 @@ def parse_directory_tls(self, rva, size):
40364036 )
40374037 except PEFormatError :
40384038 self .__warnings .append (
4039- "Invalid TLS information. Can't read " " data at RVA: 0x%x" % rva
4039+ "Invalid TLS information. Can't read data at RVA: 0x%x" % rva
40404040 )
40414041 tls_struct = None
40424042
@@ -4081,7 +4081,7 @@ def parse_directory_load_config(self, rva, size):
40814081 )
40824082 except PEFormatError :
40834083 self .__warnings .append (
4084- "Invalid LOAD_CONFIG information. Can't read " " data at RVA: 0x%x" % rva
4084+ "Invalid LOAD_CONFIG information. Can't read data at RVA: 0x%x" % rva
40854085 )
40864086
40874087 if not load_config_struct :
@@ -4155,8 +4155,7 @@ def parse_dynamic_relocations(
41554155 )
41564156 except PEFormatError :
41574157 self .__warnings .append (
4158- "Invalid relocation information. Can't read "
4159- "data at RVA: 0x%x" % rva
4158+ "Invalid relocation information. Can't read data at RVA: 0x%x" % rva
41604159 )
41614160 dynamic_rlc = None
41624161
@@ -4213,8 +4212,7 @@ def parse_function_override_data(self, rva):
42134212 )
42144213 if not func_header :
42154214 self .__warnings .append (
4216- "Invalid function override header. Can't read "
4217- "data at RVA: 0x%x" % rva
4215+ "Invalid function override header. Can't read data at RVA: 0x%x" % rva
42184216 )
42194217 return func_relocs , bdd_relocs
42204218 rva += Structure (format ).sizeof ()
@@ -4230,8 +4228,7 @@ def parse_function_override_data(self, rva):
42304228 )
42314229 if not func_info :
42324230 self .__warnings .append (
4233- "Invalid function override info. Can't read "
4234- "data at RVA: 0x%x" % rva
4231+ "Invalid function override info. Can't read data at RVA: 0x%x" % rva
42354232 )
42364233 return func_relocs , bdd_relocs
42374234 rva += Structure (format ).sizeof ()
@@ -4263,7 +4260,7 @@ def parse_function_override_data(self, rva):
42634260 )
42644261 if not bdd_info :
42654262 self .__warnings .append (
4266- "Invalid bdd info. Can't read " " data at RVA: 0x%x" % rva
4263+ "Invalid bdd info. Can't read data at RVA: 0x%x" % rva
42674264 )
42684265 return func_relocs , bdd_relocs
42694266 rva += Structure (format ).sizeof ()
@@ -4277,8 +4274,7 @@ def parse_function_override_data(self, rva):
42774274 )
42784275 if not bdd_reloc :
42794276 self .__warnings .append (
4280- "Invalid bdd dynamic relocation. Can't read "
4281- "data at RVA: 0x%x" % rva
4277+ "Invalid bdd dynamic relocation. Can't read data at RVA: 0x%x" % rva
42824278 )
42834279 return func_relocs , bdd_relocs
42844280 rva += Structure (format ).sizeof ()
@@ -4309,8 +4305,7 @@ def parse_image_base_relocation_list(self, rva, size, fmt=None):
43094305 )
43104306 except PEFormatError :
43114307 self .__warnings .append (
4312- "Invalid relocation information. Can't read "
4313- "data at RVA: 0x%x" % rva
4308+ "Invalid relocation information. Can't read data at RVA: 0x%x" % rva
43144309 )
43154310 rlc = None
43164311
@@ -4444,7 +4439,7 @@ def parse_debug_directory(self, rva, size):
44444439 data = self .get_data (rva + dbg_size * idx , dbg_size )
44454440 except PEFormatError :
44464441 self .__warnings .append (
4447- "Invalid debug information. Can't read " " data at RVA: 0x%x" % rva
4442+ "Invalid debug information. Can't read data at RVA: 0x%x" % rva
44484443 )
44494444 return None
44504445
@@ -6220,7 +6215,7 @@ def get_import_table(self, rva, max_length=None, contains_addresses=False):
62206215
62216216 if failed or len (data ) != expected_size :
62226217 self .__warnings .append (
6223- "Error parsing the import table. " " Invalid data at RVA: 0x%x" % rva
6218+ "Error parsing the import table. Invalid data at RVA: 0x%x" % rva
62246219 )
62256220 return None
62266221
0 commit comments