소스 검색

Use shlex.quote() for Python 3.13 compatibility

pull/70/head
offa 6 일 전
부모
커밋
b48c59c378
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -2
      gitup/update.py

+ 1
- 2
gitup/update.py 파일 보기

@@ -7,7 +7,6 @@ from __future__ import print_function

from glob import glob
import os
import pipes
import re
import shlex

@@ -85,7 +84,7 @@ def _fetch_remotes(remotes, prune):
msg = re.sub(r"\s+", " ", err.stderr).strip()
msg = re.sub(r"^stderr: *'(fatal: *)?", "", msg).strip("'")
if not msg:
command = " ".join(pipes.quote(arg) for arg in err.command)
command = " ".join(shlex.quote(arg) for arg in err.command)
msg = "{0} failed with status {1}.".format(command, err.status)
elif not msg.endswith("."):
msg += "."


불러오는 중...
취소
저장