Skip to content

Commit

Permalink
fix regex escape
Browse files Browse the repository at this point in the history
aviods DeprecationWarning
  • Loading branch information
minrk committed Feb 6, 2024
1 parent a9f2292 commit c126265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appnope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import platform

def _v(version_s):
return tuple(int(s) for s in re.findall("\d+", version_s))
return tuple(int(s) for s in re.findall(r"\d+", version_s))

if sys.platform != "darwin" or _v(platform.mac_ver()[0]) < _v("10.9"):
from ._dummy import *
Expand Down

0 comments on commit c126265

Please # to comment.