Skip to content

Commit

Permalink
Remove _python_version from client
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Jul 17, 2024
1 parent 7a7e9d4 commit ffd4e4f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions python/hopsworks/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@

from hopsworks_common.client import (
get_instance,
get_python_version,
init,
set_python_version,
stop,
)


__all__ = [
get_instance,
get_python_version,
init,
set_python_version,
stop,
]
7 changes: 0 additions & 7 deletions python/hopsworks/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ def _check_compatibility(self):
)
sys.stderr.flush()

def _set_client_variables(self):
python_version = self._variable_api.get_variable(
"docker_base_image_python_version"
)
client.set_python_version(python_version)

@not_connected
def connect(self):
"""Instantiate the connection.
Expand Down Expand Up @@ -271,7 +265,6 @@ def connect(self):
)

self._check_compatibility()
self._set_client_variables()

def close(self):
"""Close a connection gracefully.
Expand Down
11 changes: 0 additions & 11 deletions python/hopsworks_common/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


_client = None

Check failure on line 21 in python/hopsworks_common/client/__init__.py

View workflow job for this annotation

GitHub Actions / Lint and Stylecheck

Ruff (I001)

python/hopsworks_common/client/__init__.py:17:1: I001 Import block is un-sorted or un-formatted
_python_version = None


def init(
Expand Down Expand Up @@ -57,16 +56,6 @@ def get_instance():
raise Exception("Couldn't find client. Try reconnecting to Hopsworks.")


def get_python_version():
global _python_version
return _python_version


def set_python_version(python_version):
global _python_version
_python_version = python_version


def stop():
global _client
if _client:
Expand Down

0 comments on commit ffd4e4f

Please sign in to comment.