Skip to content

Commit

Permalink
fix: syntax warning on python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr authored and aleksihakli committed Jan 7, 2025
1 parent 2e5d260 commit fb64ba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embed_video/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ class MyBackend(VideoBackend):
"""
Compiled regex (:py:func:`re.compile`) to search code in URL.
Example: ``re.compile(r'myvideo\.com/\?code=(?P<code>\w+)')``
Example: ``re.compile(r'myvideo\\.com/\\?code=(?P<code>\\w+)')``
"""

re_detect = None
"""
Compilede regec (:py:func:`re.compile`) to detect, if input URL is valid
for current backend.
Example: ``re.compile(r'^http://myvideo\.com/.*')``
Example: ``re.compile(r'^http://myvideo\\.com/.*')``
"""

pattern_url = None
Expand Down

0 comments on commit fb64ba0

Please sign in to comment.