Skip to content

Commit 5008e94

Browse files
author
Dan Choi
committed
add newline to warning message
1 parent c2067d5 commit 5008e94

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'If you would like to use version {latest}, ' \
3838
'please add framework_version={latest} to your constructor.'
3939
PYTHON_2_DEPRECATION_WARNING = 'The Python 2 {framework} images will be soon deprecated and may not be ' \
40-
'supported for newer upcoming versions of the {framework} images. ' \
40+
'supported for newer upcoming versions of the {framework} images.\n' \
4141
'Please set the argument \"py_version=\'py3\'\" to use the Python 3 {framework} image.'
4242

4343

src/sagemaker/mxnet/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import logging
1616

1717
import sagemaker
18-
from sagemaker.fw_utils import create_image_uri, model_code_key_prefix
18+
from sagemaker.fw_utils import create_image_uri, model_code_key_prefix, python_deprecation_warning
1919
from sagemaker.model import FrameworkModel, MODEL_SERVER_WORKERS_PARAM_NAME
2020
from sagemaker.mxnet.defaults import MXNET_VERSION
2121
from sagemaker.predictor import RealTimePredictor, json_serializer, json_deserializer

src/sagemaker/sklearn/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
logger = logging.getLogger('sagemaker')
2525

26+
2627
class SKLearnPredictor(RealTimePredictor):
2728
"""A RealTimePredictor for inference against Scikit-learn Endpoints.
2829

src/sagemaker/tensorflow/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def run(self):
154154
"""Run TensorBoard process."""
155155
port, tensorboard_process = self.create_tensorboard_process()
156156

157-
LOGGER.info('TensorBoard 0.1.7 at http://localhost:{}'.format(port))
157+
logger.info('TensorBoard 0.1.7 at http://localhost:{}'.format(port))
158158
while not self.estimator.checkpoint_path:
159159
self.event.wait(1)
160160
with self._temporary_directory() as aws_sync_dir:
@@ -324,7 +324,7 @@ def fit_super():
324324
raise ValueError("Tensorboard is not supported with async fit")
325325

326326
if self._script_mode_enabled() and run_tensorboard_locally:
327-
LOGGER.warning(_SCRIPT_MODE_TENSORBOARD_WARNING.format(self.model_dir))
327+
logger.warning(_SCRIPT_MODE_TENSORBOARD_WARNING.format(self.model_dir))
328328
fit_super()
329329
elif run_tensorboard_locally:
330330
tensorboard = Tensorboard(self)

0 commit comments

Comments
 (0)