Skip to content

Commit f0a6ed4

Browse files
committed
task(RHOAIENG-33045): moved sys import
Signed-off-by: Pat O'Connor <[email protected]>
1 parent 4dfbd32 commit f0a6ed4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/codeflare_sdk/common/utils/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import sys
1415

1516
from codeflare_sdk.common.utils.constants import (
1617
SUPPORTED_PYTHON_VERSIONS,
@@ -30,8 +31,6 @@ def get_ray_image_for_python_version(python_version=None, warn_on_unsupported=Tr
3031
If False, silently falls back to Python 3.12 image.
3132
"""
3233
if python_version is None:
33-
import sys
34-
3534
python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
3635

3736
if python_version in SUPPORTED_PYTHON_VERSIONS:

0 commit comments

Comments
 (0)