From: Martin Panter Date: Thu, 13 Feb 2014 10:53:56 +0000 (+0000) Subject: Use integer division in Python 3 X-Git-Tag: v0.23~15^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=602b266c675fef656afc2986b922760cf3e19ec4;p=pyelftools.git Use integer division in Python 3 This means DwarfConfig.default_address_size is now an integer in Python 3, as in Python 2. --- 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'],