Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250

Open
kashikoibumi wants to merge 127 commits from kashikoibumi/py3qt into v0.6
Showing only changes of commit 46d8576a64 - Show all commits

View File

@ -190,7 +190,7 @@ def try_import(module, log_extra=False):
def check_ripemd160(): def check_ripemd160():
"""Check availability of the RIPEMD160 hash function""" """Check availability of the RIPEMD160 hash function"""
try: try:
from fallback import RIPEMD160Hash # pylint: disable=relative-import from fallback import RIPEMD160Hash
except ImportError: except ImportError:
return False return False
return RIPEMD160Hash is not None return RIPEMD160Hash is not None