Skip to content

Commit

Permalink
Mark deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed May 3, 2024
1 parent 2a47052 commit b841251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/core/url.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations
from typing import Any
from typing_extensions import deprecated
from urllib.parse import urljoin
from urllib.parse import urlparse
from urllib.request import pathname2url
Expand Down Expand Up @@ -31,6 +32,7 @@ def view_to_uri(view: sublime.View) -> str:
return filename_to_uri(file_name)


@deprecated("Use parse_uri() instead")
def uri_to_filename(uri: str) -> str:
"""
DEPRECATED: An URI associated to a view does not necessarily have a "file:" scheme.
Expand Down
2 changes: 2 additions & 0 deletions plugin/session_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from typing import Any, Callable, Iterable, List, Protocol
from typing import cast
from typing_extensions import TypeGuard
from typing_extensions import deprecated
from weakref import WeakSet
import sublime
import time
Expand Down Expand Up @@ -192,6 +193,7 @@ def get_view_in_group(self, group: int) -> sublime.View:
return next(iter(self.session_views)).view

@property
@deprecated("Use get_language_id() instead")
def language_id(self) -> str:
"""
Deprecated: use get_language_id
Expand Down

0 comments on commit b841251

Please sign in to comment.