Skip to content

Commit b35f1ea

Browse files
committed
Added support for Python 3.11
1 parent 7e6cb84 commit b35f1ea

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

.github/workflows/core.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ jobs:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macos-latest]
1111
python-version: ["3.6", "3.9", "3.11"]
12-
exclude:
13-
- os: macos-latest
14-
python-version: "3.6"
15-
- os: windows-latest
16-
python-version: "3.11"
1712

1813
runs-on: ${{ matrix.os }}
1914

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PlatformIO Core 6
1616
6.1.6 (2022-??-??)
1717
~~~~~~~~~~~~~~~~~~
1818

19+
* Added support for Python 3.11
1920
* Import the "zeroconf" module only when a user lists mDNS devices (issue with zeroconf's LGPL license)
2021

2122
6.1.5 (2022-11-01)

platformio/compat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ def get_filesystem_encoding():
8585

8686

8787
def get_locale_encoding():
88-
try:
89-
return locale.getdefaultlocale()[1]
90-
except ValueError:
91-
return None
88+
return locale.getpreferredencoding()
9289

9390

9491
def get_object_members(obj, ignore_private=True):

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ known_third_party=OpenSSL, SCons, jsonrpc, twisted, zope
1919
[pytest]
2020
filterwarnings =
2121
error
22-
# SCons
23-
ignore:.*_ImportRedirect.find_spec()
22+
# Bottle
23+
ignore:.*'cgi' is deprecated and slated for removal
2424

2525
[testenv]
2626
passenv = *

0 commit comments

Comments
 (0)