Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 773232f

Browse files
committed
Fix imports
1 parent ccd748c commit 773232f

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

paperspace/commands/deployments.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
import terminaltables
2-
31
from paperspace import config, version, client
4-
from paperspace.commands import common
5-
from paperspace.commands.common import CommandBase
2+
from . import common
63

74
default_headers = {"X-API-Key": config.PAPERSPACE_API_KEY,
85
"ps_client_name": "paperspace-python",
96
"ps_client_version": version.version}
107
deployments_api = client.API(config.CONFIG_HOST, headers=default_headers)
118

129

13-
class _DeploymentCommandBase(CommandBase):
10+
class _DeploymentCommandBase(common.CommandBase):
1411
def _log_message(self, response, success_msg_template, error_msg):
1512
if response.ok:
1613
try:

paperspace/commands/experiments.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import pydoc
2-
31
import terminaltables
42

53
from paperspace import logger, constants, client, config
6-
from paperspace.workspace import S3WorkspaceHandler
74
from paperspace.logger import log_response
8-
from paperspace.utils import get_terminal_lines
5+
from paperspace.workspace import S3WorkspaceHandler
96
from . import common
107

118
experiments_api = client.API(config.CONFIG_EXPERIMENTS_HOST, headers=client.default_headers)

paperspace/commands/jobs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
from click import style
55

66
from paperspace import config, client
7-
from paperspace.commands.common import CommandBase
87
from paperspace.utils import get_terminal_lines
98
from paperspace.workspace import S3WorkspaceHandler
109
from . import common
1110

1211

13-
class JobsCommandBase(CommandBase):
12+
class JobsCommandBase(common.CommandBase):
1413
def _log_message(self, response, success_msg_template, error_msg):
1514
if response.ok:
1615
try:
@@ -70,7 +69,7 @@ def _get_table_data(self, jobs):
7069
return data
7170

7271

73-
class JobLogsCommand(CommandBase):
72+
class JobLogsCommand(common.CommandBase):
7473
last_line_number = 0
7574
base_url = "/jobs/logs?jobId={}&line={}"
7675

0 commit comments

Comments
 (0)