mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:33:35 +08:00
msg/tools: remove unused import, check for six
This commit is contained in:
@@ -47,18 +47,16 @@ from uorb_rtps_classifier import Classifier
|
|||||||
import subprocess
|
import subprocess
|
||||||
import glob
|
import glob
|
||||||
import errno
|
import errno
|
||||||
try:
|
|
||||||
import yaml
|
|
||||||
except ImportError:
|
|
||||||
raise ImportError(
|
|
||||||
"Failed to import yaml. You may need to install it with 'sudo pip install pyyaml'")
|
|
||||||
try:
|
try:
|
||||||
from six.moves import input
|
from six.moves import input
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
try:
|
print("Failed to import six: " + e)
|
||||||
input = raw_input # Python 2
|
print("")
|
||||||
except NameError:
|
print("You may need to install it using:")
|
||||||
pass # Python 3
|
print(" pip3 install --user six")
|
||||||
|
print("")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def check_rtps_id_uniqueness(classifier):
|
def check_rtps_id_uniqueness(classifier):
|
||||||
|
|||||||
Reference in New Issue
Block a user