Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: [PATCH] test: Python import cleanup From: Marcel Holtmann In-Reply-To: <20140118014507.85FAE10065C@puck.mtv.corp.google.com> Date: Sat, 18 Jan 2014 00:39:43 -0800 Cc: "linux-bluetooth@vger.kernel.org development" Message-Id: References: <20140118014507.85FAE10065C@puck.mtv.corp.google.com> To: Petri Gynther Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Petri, > 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 I am not a Python expert, but the changes look all good to. So I went ahead and applied the patch. Regards Marcel