hughesjr / rpms / docker

Forked from rpms/docker 4 years ago
Clone

Blame SOURCES/urlparse.patch

b215bf
diff -uNr websocket/__init__.py websocket-1/__init__.py
b215bf
--- websocket/__init__.py	2014-05-07 21:53:31.000000000 -0400
b215bf
+++ websocket-1/__init__.py	2015-01-23 12:34:41.231543225 -0500
b215bf
@@ -40,7 +40,10 @@
b215bf
 
b215bf
     HAVE_SSL = False
b215bf
 
b215bf
-from six.moves.urllib.parse import urlparse
b215bf
+try:
b215bf
+    from six.moves.urllib.parse import urlparse
b215bf
+except:
b215bf
+    import urlparse
b215bf
 if six.PY3:
b215bf
     from base64 import encodebytes as base64encode
b215bf
 else: