kivy porting to python3 phase1
This commit is contained in:
parent
3052a3c2c2
commit
4302126b6c
|
@ -303,7 +303,7 @@ def check_openssl():
|
|||
' OpenSSL 0.9.8b or later with AES, Elliptic Curves (EC),'
|
||||
' ECDH, and ECDSA enabled.')
|
||||
return False
|
||||
matches = cflags_regex.findall(openssl_cflags)
|
||||
matches = cflags_regex.findall(openssl_cflags.decode('utf-8', "ignore"))
|
||||
if matches:
|
||||
logger.error(
|
||||
'This OpenSSL library is missing the following required'
|
||||
|
@ -424,6 +424,10 @@ def check_dependencies(verbose=False, optional=False):
|
|||
' or greater is required. Python 2.7.18 is recommended.')
|
||||
sys.exit()
|
||||
|
||||
# FIXME: This needs to be uncommented when more of the code is python3 compatible
|
||||
# if sys.hexversion >= 0x3000000 and sys.hexversion < 0x3060000:
|
||||
# print("PyBitmessage requires python >= 3.6 if using python 3")
|
||||
|
||||
check_functions = [check_ripemd160, check_sqlite, check_openssl]
|
||||
if optional:
|
||||
check_functions.extend([check_msgpack, check_pyqt, check_curses])
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
"""
|
||||
Announce addresses as they are received from other hosts
|
||||
"""
|
||||
import Queue
|
||||
from six.moves import queue
|
||||
|
||||
|
||||
import state
|
||||
from helper_random import randomshuffle
|
||||
|
@ -22,7 +23,7 @@ class AddrThread(StoppableThread):
|
|||
try:
|
||||
data = addrQueue.get(False)
|
||||
chunk.append(data)
|
||||
except Queue.Empty:
|
||||
except queue.Empty:
|
||||
break
|
||||
|
||||
if chunk:
|
||||
|
|
Reference in New Issue
Block a user