Skip to content

Commit

Permalink
fix py2->py3 incompat
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Lopez committed Oct 11, 2019
1 parent 95022d3 commit 43b124b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,9 @@ dockerfile_image(
# Register the default py_toolchain / platform for containerized execution
register_toolchains(
"//toolchains:container_py_toolchain",
"@bazel_tools//tools/python:autodetecting_toolchain",
)

register_execution_platforms(
"@local_config_platform//:host",
"//platforms:local_container_platform",
)

Expand Down
2 changes: 1 addition & 1 deletion docker/security/security_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _check_image(image, severity, whitelist):


def _get_relevant_severities(severity):
return [k for k, v in _SEV_MAP.iteritems()
return [k for k, v in _SEV_MAP.items()
if v >= _SEV_MAP.get(severity, 1)]


Expand Down
2 changes: 0 additions & 2 deletions python/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ def repositories():
# Register the default py_toolchain / platform for containerized execution
native.register_toolchains(
"@io_bazel_rules_docker//toolchains:container_py_toolchain",
"@bazel_tools//tools/python:autodetecting_toolchain",
)
native.register_execution_platforms(
"@local_config_platform//:host",
"@io_bazel_rules_docker//platforms:local_container_platform",
)

Expand Down
2 changes: 0 additions & 2 deletions python3/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def repositories():
# Register the default py_toolchain / platform for containerized execution
native.register_toolchains(
"@io_bazel_rules_docker//toolchains:container_py_toolchain",
"@bazel_tools//tools/python:autodetecting_toolchain",
)
native.register_execution_platforms(
"@local_config_platform//:host",
"@io_bazel_rules_docker//platforms:local_container_platform",
)

Expand Down

0 comments on commit 43b124b

Please sign in to comment.