summaryrefslogtreecommitdiff
path: root/test/test-nap
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-nap
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-nap')
-rwxr-xr-xtest/test-nap2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-nap b/test/test-nap
index 197e3c25e..00a2585af 100755
--- a/test/test-nap
+++ b/test/test-nap
@@ -2,10 +2,10 @@
from __future__ import absolute_import, print_function, unicode_literals
+from optparse import OptionParser, make_option
import sys
import time
import dbus
-from optparse import OptionParser, make_option
import bluezutils
bus = dbus.SystemBus()