From 78db89e1086b63c2fdf38195d6b87f752b1ce70f Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Fri, 12 Jun 2015 13:47:35 +0200 Subject: Move import to top. --- BluetoothPairedDevices.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'BluetoothPairedDevices.py') diff --git a/BluetoothPairedDevices.py b/BluetoothPairedDevices.py index 96d1a8d..52b9a7d 100644 --- a/BluetoothPairedDevices.py +++ b/BluetoothPairedDevices.py @@ -2,6 +2,11 @@ import sys import re import os +if sys.platform == "darwin": + from binplist import binplist +elif sys.platform == "win32": + import _winreg + def ParrotZikMac(): p = re.compile('90:03:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}') @@ -35,8 +40,3 @@ def ParrotZikMac(): except EnvironmentError: pass - -if sys.platform == "darwin": - from binplist import binplist -elif sys.platform == "win32": - import _winreg -- cgit v1.2.1