Fixed deprecation warning as of Python 3.14 in Emoji extension

This is to address Issue #8446

Also:
- Added uv.lock to .gitignore to make it easier to test with uv virtual environments using things like a release candidate version of Python
This commit is contained in:
Todd Leonhardt
2025-09-15 04:38:37 -04:00
committed by GitHub
parent ed0026322f
commit 900981b6f8
3 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@@ -65,3 +65,6 @@ tmp
# IDEs & Editors
.idea
*~
# uv Python package manager
uv.lock

View File

@@ -20,7 +20,6 @@
from __future__ import annotations
import codecs
import functools
import material
import os
@@ -65,7 +64,7 @@ def to_svg(
# Load icon
@functools.lru_cache(maxsize = None)
def _load(file: str):
with codecs.open(file, encoding = "utf-8") as f:
with open(file, encoding = "utf-8") as f:
return f.read()
# Load twemoji index and add icons

View File

@@ -20,7 +20,6 @@
from __future__ import annotations
import codecs
import functools
import material
import os
@@ -65,7 +64,7 @@ def to_svg(
# Load icon
@functools.lru_cache(maxsize = None)
def _load(file: str):
with codecs.open(file, encoding = "utf-8") as f:
with open(file, encoding = "utf-8") as f:
return f.read()
# Load twemoji index and add icons