Permalink
Browse files

on OSX, socket.py has no BDADDR_*

  • Loading branch information...
1 parent 3a03827 commit 33a3f2769044f2fcd74f8c299371f251718405ab @SamuelDevlin SamuelDevlin committed Jun 25, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 coro/emulation/socket.py
View
@@ -52,9 +52,11 @@
g[name] = value
del g, name, value
-BDADDR_ANY = _socketmodule.BDADDR_ANY
-BDADDR_LOCAL = _socketmodule.BDADDR_LOCAL
-
+try:
+ BDADDR_ANY = _socketmodule.BDADDR_ANY
+ BDADDR_LOCAL = _socketmodule.BDADDR_LOCAL
+except AttributeError:
+ pass
##############################################################################
# Timeout.

0 comments on commit 33a3f27

Please sign in to comment.