Skip to content

Commit 06a9df4

Browse files
authored
[Buildsystem] Replace pipes with shlex for command quoting
The pipes modules was removed in [python 3.13](https://docs.python.org/3/library/pipes.html) causing the fedora build to fail. replace with `shlex` https://ci.swift.org/view/all/job/oss-swift-6.2-package-fedora-41
1 parent d80e185 commit 06a9df4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/SwiftBuildTool/Inputs/pseudo-swiftc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import argparse
55
import json
66
import os
7-
import pipes
7+
import shlex
88
import sys
99

1010
def main():
@@ -47,7 +47,7 @@ def main():
4747

4848
# If run in show commands mode, print some dummy output.
4949
if args.show_commands:
50-
print(' '.join(map(pipes.quote, [
50+
print(' '.join(map(shlex.quote, [
5151
sys.argv[0], "-frontend", "...blablabla..."])))
5252
return
5353

0 commit comments

Comments
 (0)