Skip to content

Commit

Permalink
Merge pull request #2 from karolyi/master
Browse files Browse the repository at this point in the history
Fix import error on Sublime 3dev
  • Loading branch information
alepez authored Oct 5, 2016
2 parents 6bc421f + 529cd8e commit a76451a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/WSRequestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import LiveReload

try:
import urlparse
from urlparse import urlparse
except ImportError:
import urllib.parse as urlparse
from urllib.parse import urlparse

import sys

Expand Down Expand Up @@ -42,7 +42,7 @@ def do_GET(self):
self.last_code = 101
self.last_message = '101 Switching Protocols'
else:
req = urlparse.urlparse(self.path)
req = urlparse(self.path)
_file = LiveReload.API.has_file(req.path)
_httpcallback = LiveReload.API.has_callback(req.path)
if _httpcallback:
Expand Down

0 comments on commit a76451a

Please sign in to comment.