Commits

Andrew Godwin  committed e6db309

First part of greening. It's unlikely to be this easy.

  • Participants
  • Parent commits aa7a2b4
  • Branches eventlet

Comments (0)

Files changed (1)

File amqplib/client_0_8/transport.py

 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
 
-import socket
+try:
+    from eventlet.greenio import socket
+except:
+    import socket
 
 #
 # See if Python 2.6+ SSL support is available