Skip to content

Commit e5ea855

Browse files
committed
setupbase.py: drop pipes usage
pipes is deprecated since version 3.11, and got removed in version 3.13 (see PEP 594 for details). To get pythreejs to work with python 3.13, switch to shlex.quote instead.
1 parent 584fe39 commit e5ea855

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setupbase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import io
1515
import os
1616
import functools
17-
import pipes
1817
import re
1918
import shlex
2019
import subprocess
@@ -43,7 +42,7 @@
4342
from subprocess import list2cmdline
4443
else:
4544
def list2cmdline(cmd_list):
46-
return ' '.join(map(pipes.quote, cmd_list))
45+
return ' '.join(map(shlex.quote, cmd_list))
4746

4847

4948
__version__ = '0.2.0'

0 commit comments

Comments
 (0)