From dc9f12c16b4b1214514e3bf5de0f4750750c3b14 Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 25 May 2021 18:02:36 +0800 Subject: [PATCH] Use Python 3.8 in Sublime Text 4 --- .python-version | 1 + ConvertToUTF8.py | 2 +- messages.json | 1 + messages/1.2.14.txt | 6 ++++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .python-version create mode 100644 messages/1.2.14.txt diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/ConvertToUTF8.py b/ConvertToUTF8.py index 8494e70..9681c47 100644 --- a/ConvertToUTF8.py +++ b/ConvertToUTF8.py @@ -381,7 +381,7 @@ def run(self, edit, encoding, file_name, need_codecs): branch = self.get_branch(sublime.platform(), sublime.arch()) if branch: ver = '33' if ST3 else '26' - msg = msg + 'Please install Codecs{0} plugin (https://github.com/seanliang/Codecs{0}/tree/{1}).\n'.format(ver, branch) + msg = msg + 'Please install Codecs{0} plugin (https://github.com/seanliang/Codecs{0}/tree/{1}) or upgrade to Sublime Text 4.\n'.format(ver, branch) else: import platform msg = msg + 'Please send the following information to sunlxy (at) yahoo.com:\n====== Debug Information ======\nVersion: {0}-{1}\nPlatform: {2}\nPath: {3}\nEncoding: {4}\n'.format( diff --git a/messages.json b/messages.json index 1c4950e..054e98e 100644 --- a/messages.json +++ b/messages.json @@ -1,4 +1,5 @@ { + "1.2.14": "messages/1.2.14.txt", "1.2.13": "messages/1.2.13.txt", "1.2.12": "messages/1.2.12.txt", "1.2.11": "messages/1.2.11.txt", diff --git a/messages/1.2.14.txt b/messages/1.2.14.txt new file mode 100644 index 0000000..3753916 --- /dev/null +++ b/messages/1.2.14.txt @@ -0,0 +1,6 @@ +ConvertToUTF8 1.2.14 Changelog + +Enhancements +- Use Python 3.8 in Sublime Text 4 + +Note: For those who upgrade to Sublime Text 4, please remove or disable Codecs33 plugin which files are included in embedded Python 3.8.