Avoid breakage with Python 3.13. (#354) (#355)

(cherry picked from commit fb55b1d780)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-05-19 07:07:46 +02:00 committed by GitHub
parent 06626520e5
commit 31966e90a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -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)."

View File

@ -1209,7 +1209,6 @@ status:
'''
import os
import pipes
import re
import shlex
import traceback
@ -1249,14 +1248,6 @@ except Exception:
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',