Compare commits
22 Commits
Author | SHA256 | Date | |
---|---|---|---|
93fb1b504c | |||
116dbbbe6b | |||
a8fc4e44a3 | |||
9d455d9c10 | |||
5680a820e0 | |||
ba691fc5a8 | |||
|
4fe91112f2 | ||
6eda091d9f | |||
|
69e4d7111e | ||
805f538b85 | |||
48984b2fd9 | |||
e77ac00b3c | |||
|
56fe27bf10 | ||
f2b6181a2e | |||
|
b7b269af1d | ||
|
8c35a9a270 | ||
|
f3315bf5cc | ||
|
16ca69b0e1 | ||
0936d9ace8 | |||
|
f47caff425 | ||
|
04c8e6ab9d | ||
b5dfba5244 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b
|
|
||||||
size 7132
|
|
@@ -1,33 +0,0 @@
|
|||||||
From 5023fafd265add111b29baca59b07f140daf75b7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Branch Vincent <branchevincent@gmail.com>
|
|
||||||
Date: Sun, 8 Oct 2023 12:52:53 -0700
|
|
||||||
Subject: [PATCH] support python 3.12
|
|
||||||
|
|
||||||
Python 3.12 has removed `distutils`: https://docs.python.org/3.12/whatsnew/3.12.html#removed
|
|
||||||
---
|
|
||||||
editor.py | 5 ++++-
|
|
||||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: python-editor-1.0.4/editor.py
|
|
||||||
===================================================================
|
|
||||||
--- python-editor-1.0.4.orig/editor.py
|
|
||||||
+++ python-editor-1.0.4/editor.py
|
|
||||||
@@ -8,7 +8,6 @@ import locale
|
|
||||||
import os.path
|
|
||||||
import subprocess
|
|
||||||
import tempfile
|
|
||||||
-from distutils.spawn import find_executable
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
@@ -52,6 +51,10 @@ def get_editor_args(editor):
|
|
||||||
|
|
||||||
|
|
||||||
def get_editor():
|
|
||||||
+ try:
|
|
||||||
+ from distutils.spawn import find_executable
|
|
||||||
+ except ImportError:
|
|
||||||
+ from shutil import which as find_executable
|
|
||||||
# Get the editor from the environment. Prefer VISUAL to EDITOR
|
|
||||||
editor = os.environ.get('VISUAL') or os.environ.get('EDITOR')
|
|
||||||
if editor:
|
|
Reference in New Issue
Block a user