Skip to content

Commit

Permalink
Avoid breakage with Python 3.13. (#354)
Browse files Browse the repository at this point in the history
(cherry picked from commit fb55b1d)
  • Loading branch information
felixfontein authored and patchback[bot] committed May 18, 2022
1 parent 0662652 commit 312039e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/354-remove-dead-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "docker_container - remove unused code that will cause problems with Python 3.13 (https://github.com/ansible-collections/community.docker/pull/354)."
9 changes: 0 additions & 9 deletions plugins/modules/docker_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,6 @@
'''

import os
import pipes
import re
import shlex
import traceback
Expand Down Expand Up @@ -1249,14 +1248,6 @@
pass


def shell_join(parts):
if getattr(shlex, 'quote', None):
quote = shlex.quote
else:
quote = pipes.quote
return ' '.join([quote(part) for part in parts])


REQUIRES_CONVERSION_TO_BYTES = [
'kernel_memory',
'memory',
Expand Down

0 comments on commit 312039e

Please sign in to comment.