Avoid breakage with Python 3.13. (#354)

This commit is contained in:
Felix Fontein 2022-05-18 22:22:50 +02:00 committed by GitHub
parent a299dfa49d
commit fb55b1d780
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

@ -1188,7 +1188,6 @@ status:
'''
import os
import pipes
import re
import shlex
import traceback
@ -1228,14 +1227,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',