Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docker/utils/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def port_range(start, end, proto, randomly_available_port=False):


def split_port(port):
if hasattr(port, 'legacy_repr'):
# This is the worst hack, but it prevents a bug in Compose 1.14.0
# https://github.com/docker/docker-py/issues/1668
# TODO: remove once fixed in Compose stable
port = port.legacy_repr()
port = str(port)
match = PORT_SPEC.match(port)
if match is None:
Expand Down
2 changes: 1 addition & 1 deletion docker/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "2.4.1"
version = "2.4.2"
version_info = tuple([int(d) for d in version.split("-")[0].split(".")])
4 changes: 2 additions & 2 deletions docs/change-log.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Change log
==========

2.4.1
2.4.2
-----

[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/35?closed=1)
[List of PRs / issues for this release](https://github.com/docker/docker-py/milestone/36?closed=1)

### Bugfixes

Expand Down