Skip to content

Commit

Permalink
Move pipes import to support py3.13 (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored Nov 7, 2024
1 parent 1952e06 commit a61a9f5
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 @@ -13,7 +13,6 @@
import functools
import io
import os
import pipes
import re
import shlex
import subprocess
Expand All @@ -40,9 +39,10 @@
except ImportError:
bdist_wheel = None

if sys.platform == "win32":
try:
from subprocess import list2cmdline
else:
except ImportError:
import pipes

def list2cmdline(cmd_list):
return " ".join(map(pipes.quote, cmd_list))
Expand Down

0 comments on commit a61a9f5

Please sign in to comment.