From bd83088ba572c7daa0e835bfd24152233b6517c4 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Mon, 7 Sep 2020 12:01:27 +0800 Subject: [PATCH] fix blehr queue python 2 3 compatibility --- examples/bluetooth/nimble/blehr/blehr_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/bluetooth/nimble/blehr/blehr_test.py b/examples/bluetooth/nimble/blehr/blehr_test.py index 59e7cdb9b7..765c05f649 100644 --- a/examples/bluetooth/nimble/blehr/blehr_test.py +++ b/examples/bluetooth/nimble/blehr/blehr_test.py @@ -19,9 +19,13 @@ import os import re import threading import traceback -import Queue import subprocess +try: + import Queue +except ImportError: + import queue as Queue + from tiny_test_fw import Utility import ttfw_idf from ble import lib_ble_client