Skip to content

Commit

Permalink
Replace pipes with shlex (#286)
Browse files Browse the repository at this point in the history
pipes module has been deprecated in Python 3.11 and removed in 3.13. https://peps.python.org/pep-0594/
  • Loading branch information
frenzymadness authored Sep 7, 2024
1 parent b8eff7d commit 2545d90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import os
import re
import pipes
import shlex
import shutil
import sys

Expand All @@ -27,7 +27,7 @@
from subprocess import list2cmdline
else:
def list2cmdline(cmd_list):
return ' '.join(map(pipes.quote, cmd_list))
return ' '.join(map(shlex.quote, cmd_list))

#-------------------------------------------------------------------------------
# Useful globals and utility functions
Expand Down Expand Up @@ -486,7 +486,7 @@ def run(self):
try:
run(['lessc',
'--source-map',
'--include-path=%s' % pipes.quote(static),
'--include-path=%s' % shlex.quote(static),
src,
dst,
], cwd=repo_root, env=env)
Expand Down

0 comments on commit 2545d90

Please sign in to comment.