summaryrefslogtreecommitdiff
path: root/python/examples/triage/byte.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/triage/byte.py')
-rw-r--r--python/examples/triage/byte.py6
1 files changed, 0 insertions, 6 deletions
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)