websocketproxy.py: fix for python2.4

Thanks to https://github.com/WhiteRavenTechnology for catching this.
This commit is contained in:
Joel Martin 2012-10-30 08:34:47 -05:00
parent 5e16b38524
commit 47fb367486
1 changed files with 5 additions and 2 deletions

View File

@ -14,8 +14,11 @@ as taken from http://docs.python.org/dev/library/ssl.html#certificates
import signal, socket, optparse, time, os, sys, subprocess
from select import select
import websocket
try: from urllib.parse import parse_qs, urlparse
except: from urlparse import parse_qs, urlparse
try:
from urllib.parse import parse_qs, urlparse
except:
from cgi import parse_qs
from urlparse import urlparse
class WebSocketProxy(websocket.WebSocketServer):
"""