From ff4f7273925df677b67b31e2b532768a392e18f8 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Thu, 13 Feb 2014 11:18:36 +0000 Subject: [PATCH] =?utf8?q?Implement=20Section.=5F=5Fhash=5F=5F()=20to=20av?= =?utf8?q?oid=20Python=202=E2=80=99s=20DeprecationWarning?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- elftools/elf/sections.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elftools/elf/sections.py b/elftools/elf/sections.py index ce62450..5b200ed 100644 --- a/elftools/elf/sections.py +++ b/elftools/elf/sections.py @@ -41,6 +41,8 @@ class Section(object): def __eq__(self, other): return self.header == other.header + def __hash__(self): + return hash(self.header) class NullSection(Section): -- 2.30.2