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:
Solly Ross 2015-02-03 16:51:01 -05:00
parent 999a133bc5
commit acd276e1a2
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
from websocket import * from websockify.websocket import *
from websocketproxy import * from websockify.websocketproxy import *

View File

@ -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: