Don't use implicit relative imports
Implicit relative imports don't work in Python 3. This converts implicit relative imports into absolute imports (e.g. `import websocket` becomes `from websockify import websocket`). Fixes #154
This commit is contained in:
parent
999a133bc5
commit
acd276e1a2
|
@ -1,2 +1,2 @@
|
||||||
from websocket import *
|
from websockify.websocket import *
|
||||||
from websocketproxy import *
|
from websockify.websocketproxy import *
|
||||||
|
|
|
@ -17,7 +17,7 @@ except: from SocketServer import ForkingMixIn
|
||||||
try: from http.server import HTTPServer
|
try: from http.server import HTTPServer
|
||||||
except: from BaseHTTPServer import HTTPServer
|
except: from BaseHTTPServer import HTTPServer
|
||||||
from select import select
|
from select import select
|
||||||
import websocket
|
from websockify import websocket
|
||||||
try:
|
try:
|
||||||
from urllib.parse import parse_qs, urlparse
|
from urllib.parse import parse_qs, urlparse
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue