summaryrefslogtreecommitdiff
path: root/test/test-adapter
diff options
context:
space:
mode:
authorPetri Gynther <pgynther@google.com>2014-01-17 17:45:07 -0800
committerMarcel Holtmann <marcel@holtmann.org>2014-01-18 00:38:39 -0800
commit7adf8d09b4ba060ecb223e36fd6678aa52ab0af1 (patch)
treee31bb33a1ccf5460c74ce7fb48bc7c03a04401d0 /test/test-adapter
parentd715a2ee3ccf4b9f915b16cb138bfdabe4858581 (diff)
downloadbluez-7adf8d09b4ba060ecb223e36fd6678aa52ab0af1.tar.gz
test: Python import cleanup
Some test scripts use "from gi.repository import GObject" whereas others use "import gobject". gi.repository is not always available on embedded systems, so convert all instances to this format: try: from gi.repository import GObject except ImportError: import gobject as GObject Also, sort the imports in this order: system, dbus, gobject, bluezutils
Diffstat (limited to 'test/test-adapter')
-rwxr-xr-xtest/test-adapter4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-adapter b/test/test-adapter
index 5deeda484..959a43703 100755
--- a/test/test-adapter
+++ b/test/test-adapter
@@ -2,10 +2,10 @@
from __future__ import absolute_import, print_function, unicode_literals
+from optparse import OptionParser, make_option
import sys
-import dbus
import time
-from optparse import OptionParser, make_option
+import dbus
import bluezutils
bus = dbus.SystemBus()