Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit900981b

Browse files
authored
Fixed deprecation warning as of Python 3.14 in Emoji extension
This is to address Issue#8446Also:- Added uv.lock to .gitignore to make it easier to test with uv virtual environments using things like a release candidate version of Python
1 parented00263 commit900981b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ tmp
6565
# IDEs & Editors
6666
.idea
6767
*~
68+
69+
# uv Python package manager
70+
uv.lock

‎material/extensions/emoji.py‎

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

2121
from __future__importannotations
2222

23-
importcodecs
2423
importfunctools
2524
importmaterial
2625
importos
@@ -65,7 +64,7 @@ def to_svg(
6564
# Load icon
6665
@functools.lru_cache(maxsize=None)
6766
def_load(file:str):
68-
withcodecs.open(file,encoding="utf-8")asf:
67+
withopen(file,encoding="utf-8")asf:
6968
returnf.read()
7069

7170
# Load twemoji index and add icons

‎src/extensions/emoji.py‎

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

2121
from __future__importannotations
2222

23-
importcodecs
2423
importfunctools
2524
importmaterial
2625
importos
@@ -65,7 +64,7 @@ def to_svg(
6564
# Load icon
6665
@functools.lru_cache(maxsize=None)
6766
def_load(file:str):
68-
withcodecs.open(file,encoding="utf-8")asf:
67+
withopen(file,encoding="utf-8")asf:
6968
returnf.read()
7069

7170
# Load twemoji index and add icons

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp