Commit 34810df1 by Craig Heffner

Fixed hashlib warnings/errors in IDA

parent eeb5b95f
......@@ -5,11 +5,15 @@ import os
import re
import sys
import ast
import hashlib
import platform
import operator as op
import binwalk.core.idb
from binwalk.core.compat import *
# Don't try to import hashlib when loaded into IDA; it doesn't work.
if not binwalk.core.idb.LOADED_IN_IDA:
import hashlib
# The __debug__ value is a bit backwards; by default it is set to True, but
# then set to False if the Python interpreter is run with the -O option.
if not __debug__:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment