aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-12 13:47:35 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-12 13:47:35 +0200
commit78db89e1086b63c2fdf38195d6b87f752b1ce70f (patch)
treecdf73e8756e261ce5fda5cebfe679cb836574e81
parentc6442c2eb44c38d6cbe64f8ebe7b4132c70a6326 (diff)
downloadpyParrotZikTCP-78db89e1086b63c2fdf38195d6b87f752b1ce70f.tar.xz
pyParrotZikTCP-78db89e1086b63c2fdf38195d6b87f752b1ce70f.zip
Move import to top.
-rw-r--r--BluetoothPairedDevices.py10
1 files changed, 5 insertions, 5 deletions
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