Skip to content

Commit 2883633

Browse files
authored
Merge pull request #242 from adamblake/compat-3.13
Remove `pipes` for compatibility with Python 3.13
2 parents f86017e + 39c5ee5 commit 2883633

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

chartpress.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import argparse
99
import os
10-
import pipes
1110
import re
1211
import shlex
1312
import shutil
@@ -68,7 +67,7 @@ def _log(message):
6867
def _run_cmd(call, cmd, *, echo=True, **kwargs):
6968
"""Run a command and echo it first with censoring of GITHUB_TOKEN."""
7069
if echo:
71-
cmd_string = " ".join(map(pipes.quote, cmd))
70+
cmd_string = " ".join(map(shlex.quote, cmd))
7271
github_token = os.getenv(GITHUB_TOKEN_KEY)
7372
if github_token:
7473
cmd_string = cmd_string.replace(github_token, "CENSORED_GITHUB_TOKEN")

tests/test_repo_interactions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import contextlib
21
import os
32
import subprocess
43
import sys
5-
import tempfile
64

75
import pytest
86
from conftest import cache_clear

0 commit comments

Comments
 (0)