Skip to content

Commit 870951e

Browse files
committed
Formally deprecate a deprecated method
1 parent 19234fd commit 870951e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seleniumbase/fixtures/js_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import requests
77
import time
88
from selenium.common.exceptions import WebDriverException
9+
from seleniumbase.common import decorators
910
from seleniumbase.config import settings
1011
from seleniumbase.fixtures import constants
1112

@@ -628,6 +629,7 @@ def slow_scroll_to_element(driver, element, browser):
628629
time.sleep(0.162)
629630

630631

632+
@decorators.deprecated("Use re.escape() instead, which does what you want!")
631633
def _jq_format(code):
632634
"""
633635
DEPRECATED - Use re.escape() instead, which performs the intended action.

0 commit comments

Comments
 (0)