From 602b266c675fef656afc2986b922760cf3e19ec4 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 13 Feb 2014 10:53:56 +0000 Subject: [PATCH] Use integer division in Python 3 This means DwarfConfig.default_address_size is now an integer in Python 3, as in Python 2. --- elftools/elf/elffile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elftools/elf/elffile.py b/elftools/elf/elffile.py index ed168cc..101c727 100644 --- a/elftools/elf/elffile.py +++ b/elftools/elf/elffile.py @@ -141,7 +141,7 @@ class ELFFile(object): return DWARFInfo( config=DwarfConfig( little_endian=self.little_endian, - default_address_size=self.elfclass / 8, + default_address_size=self.elfclass // 8, machine_arch=self.get_machine_arch()), debug_info_sec=debug_sections[b'.debug_info'], debug_abbrev_sec=debug_sections[b'.debug_abbrev'], -- 2.30.2