Skip to content

Commit

Permalink
Merge pull request #187 from neilmillard/master
Browse files Browse the repository at this point in the history
update pipes due to Python 3.13 deprecation
  • Loading branch information
cjw296 authored Oct 17, 2023
2 parents 7c31dd2 + fbf60e2 commit cbd6994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testfixtures/popen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pipes
import shlex
from functools import wraps, partial, reduce
from io import TextIOWrapper
from itertools import chain, zip_longest
Expand All @@ -15,7 +15,7 @@

def shell_join(command: Command) -> str:
if not isinstance(command, str):
command = " ".join(pipes.quote(part) for part in command)
command = " ".join(shlex.quote(part) for part in command)
return command


Expand Down

0 comments on commit cbd6994

Please sign in to comment.