From 3c1c40158da1e2af9aced53056ad4c3aaafc0913 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 14 May 2022 02:22:35 -0400 Subject: remove more vestigal py2 code --- python/examples/triage/byte.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'python/examples/triage') diff --git a/python/examples/triage/byte.py b/python/examples/triage/byte.py index 0cc00485..13e5d153 100644 --- a/python/examples/triage/byte.py +++ b/python/examples/triage/byte.py @@ -47,12 +47,6 @@ class ByteView(QAbstractScrollArea, View): u'≡', u'±', u'≥', u'≤', u'⌠', u'⌡', u'÷', u'≈', u'°', u'∙', u'·', u'√', u'ⁿ', u'²', u'■', u' ' ] - if sys.version_info.major == 2: - mapping = {} - for i in range(0, 256): - mapping[chr(i)] = self.byte_mapping[i] - self.byte_mapping = mapping - self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn) self.setFocusPolicy(Qt.StrongFocus) -- cgit v1.3.1