Skip to content

Commit

Permalink
Fixed missing Six module import
Browse files Browse the repository at this point in the history
  • Loading branch information
faggionluca committed Apr 14, 2021
1 parent 9525c33 commit adcebed
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion megascan_link_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def openSettingsDialog():
dialog = dialogs.SettingsDialog(Data.socket,mainWindow)
dialog.show()

def createToolBar():
def createToolBar():
"""Creates the toolbar containing the action to open the Settings Dialog
"""
Data.toolbar = sbsui.add_toolbar("Megscan Link", "megascanlink")
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_abnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import os
import struct

import six
from . import six

from ._exceptions import *
from ._utils import validate_utf8
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import time
import traceback

import six
from . import six

from ._abnf import ABNF
from ._core import WebSocket, getdefaulttimeout
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import threading
import time

import six
from . import six

# websocket modules
from ._abnf import *
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_handshake.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import hmac
import os

import six
from . import six

from ._cookiejar import SimpleCookieJar
from ._exceptions import *
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import socket
import sys

import six
from . import six

from ._exceptions import *
from ._logging import *
Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import select
import socket

import six
from . import six
import sys

from ._exceptions import *
Expand Down
6 changes: 3 additions & 3 deletions megascan_link_python/websocket/_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import socket
import struct

from six.moves.urllib.parse import urlparse
from . import six


__all__ = ["parse_url", "get_proxy_info"]
Expand All @@ -47,7 +47,7 @@ def parse_url(url):

scheme, url = url.split(":", 1)

parsed = urlparse(url, scheme="ws")
parsed = six.moves.urllib.parse.urlparse(url, scheme="ws")
if parsed.hostname:
hostname = parsed.hostname
else:
Expand Down Expand Up @@ -171,7 +171,7 @@ def get_proxy_info(
for key in env_keys:
value = os.environ.get(key, None)
if value:
proxy = urlparse(value)
proxy = six.moves.urllib.parse.urlparse(value)
auth = (proxy.username, proxy.password) if proxy.username else None
return proxy.hostname, proxy.port, auth

Expand Down
2 changes: 1 addition & 1 deletion megascan_link_python/websocket/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""
import six
from . import six

__all__ = ["NoLock", "validate_utf8", "extract_err_message", "extract_error_code"]

Expand Down

0 comments on commit adcebed

Please sign in to comment.