mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
Avoid breakage with Python 3.13. (#354)
This commit is contained in:
parent
a299dfa49d
commit
fb55b1d780
2
changelogs/fragments/354-remove-dead-code.yml
Normal file
2
changelogs/fragments/354-remove-dead-code.yml
Normal 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)."
|
||||||
@ -1188,7 +1188,6 @@ status:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pipes
|
|
||||||
import re
|
import re
|
||||||
import shlex
|
import shlex
|
||||||
import traceback
|
import traceback
|
||||||
@ -1228,14 +1227,6 @@ except Exception:
|
|||||||
pass
|
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 = [
|
REQUIRES_CONVERSION_TO_BYTES = [
|
||||||
'kernel_memory',
|
'kernel_memory',
|
||||||
'memory',
|
'memory',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user