From 85b30d248ade4530a9c3fb928f6a367f535b2ba3 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Sat, 7 Mar 2020 05:35:44 -0800 Subject: [PATCH] Reflow comments and clean up whitespace --- test/test_refaddr_bitness.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/test_refaddr_bitness.py b/test/test_refaddr_bitness.py index 67f3e6a..85fc56d 100644 --- a/test/test_refaddr_bitness.py +++ b/test/test_refaddr_bitness.py @@ -4,15 +4,15 @@ # Seva Alekseyev (sevaa@sprynet.com) # This code is in the public domain # -# The error that motivated this fix was in an iOS binary in Mach-O format. -# It had v2 DWARF data, but it was targeting a 64 bit architecture. -# Before the fix, pyelftools would assume that DW_FORM_ref_addr attribute took 4 bytes -# and misparse the DWARF data in the binary. +# The error that motivated this fix was in an iOS binary in Mach-O format. It +# had v2 DWARF data, but it was targeting a 64 bit architecture. Before the fix, +# pyelftools would assume that DW_FORM_ref_addr attribute took 4 bytes and +# misparse the DWARF data in the binary. # -# Since pyelftools doesn't work with Mach-O files, I've taken a sample binary apart, -# and saved the three relevant sections - info, abbrev, and str as flat files. -# The metadata (the fact that it's targeting ARM64) is hard-coded, since the Mach-O header -# isn't preserved. +# Since pyelftools doesn't work with Mach-O files, I've taken a sample binary +# apart, and saved the three relevant sections - info, abbrev, and str as flat +# files. The metadata (the fact that it's targeting ARM64) is hard-coded, since +# the Mach-O header isn't preserved. #------------------------------------------------------------------------------ import unittest @@ -28,7 +28,7 @@ class TestRefAddrOnDWARFv2With64BitTarget(unittest.TestCase): with open(os.path.join('test', 'testfiles_for_unittests', 'arm64_on_dwarfv2.abbrev.dat'), 'rb') as f: abbrev = f.read() with open(os.path.join('test', 'testfiles_for_unittests', 'arm64_on_dwarfv2.str.dat'), 'rb') as f: - str = f.read() + str = f.read() # Parse the DWARF info di = DWARFInfo( @@ -59,4 +59,4 @@ class TestRefAddrOnDWARFv2With64BitTarget(unittest.TestCase): # It was 9 before the patch, which was wrong. if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() -- 2.30.2