mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-03-31 06:24:07 -04:00
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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -65,3 +65,6 @@ tmp
|
||||
# IDEs & Editors
|
||||
.idea
|
||||
*~
|
||||
|
||||
# uv Python package manager
|
||||
uv.lock
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user