From: Eli Bendersky Date: Fri, 5 Jun 2015 13:11:46 +0000 (-0700) Subject: Cosmetic cleanup X-Git-Tag: v0.24~28 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db74f6886179bac427e1fc535d20e063089b5392;p=pyelftools.git Cosmetic cleanup --- diff --git a/LICENSE b/LICENSE index c779ed7..26c1b8f 100644 --- a/LICENSE +++ b/LICENSE @@ -30,4 +30,3 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to - diff --git a/examples/dwarf_decode_address.py b/examples/dwarf_decode_address.py index 80b53ee..dffc178 100644 --- a/examples/dwarf_decode_address.py +++ b/examples/dwarf_decode_address.py @@ -82,4 +82,3 @@ if __name__ == '__main__': for filename in sys.argv[1:]: # For testing we use a hardcoded address. process_file(filename, 0x400503) - diff --git a/examples/elf_low_high_api.py b/examples/elf_low_high_api.py index 72b4daa..f6fbed1 100644 --- a/examples/elf_low_high_api.py +++ b/examples/elf_low_high_api.py @@ -15,7 +15,6 @@ import sys # examples/ dir of the source distribution. sys.path[0:0] = ['.', '..'] -from elftools.common.py3compat import bytes2str from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSection @@ -87,5 +86,3 @@ def section_info_highlevel(stream): if __name__ == '__main__': for filename in sys.argv[1:]: process_file(filename) - - diff --git a/examples/elf_relocations.py b/examples/elf_relocations.py index 70e8b3a..06ad93b 100644 --- a/examples/elf_relocations.py +++ b/examples/elf_relocations.py @@ -14,8 +14,6 @@ import sys # examples/ dir of the source distribution. sys.path[0:0] = ['.', '..'] - -from elftools.common.py3compat import bytes2str from elftools.elf.elffile import ELFFile from elftools.elf.relocation import RelocationSection diff --git a/examples/elf_show_debug_sections.py b/examples/elf_show_debug_sections.py index 07202ce..02a13fb 100644 --- a/examples/elf_show_debug_sections.py +++ b/examples/elf_show_debug_sections.py @@ -13,7 +13,6 @@ import sys # examples/ dir of the source distribution. sys.path[0:0] = ['.', '..'] -from elftools.common.py3compat import bytes2str from elftools.elf.elffile import ELFFile @@ -23,7 +22,6 @@ def process_file(filename): elffile = ELFFile(f) for section in elffile.iter_sections(): - # Section names are string if section.name.startswith('.debug'): print(' ' + section.name) @@ -31,4 +29,3 @@ def process_file(filename): if __name__ == '__main__': for filename in sys.argv[1:]: process_file(filename) -