Swind / pure-python-adb

This is pure-python implementation of the ADB client.
MIT License
553 stars 104 forks source link

Mark regex pattern variables raw strings #109

Open mib1185 opened 7 months ago

mib1185 commented 7 months ago

this should solve https://github.com/home-assistant/core/issues/114420

Logger: py.warnings
Source: components/androidtv/__init__.py:17
First occurred: 2:43:35 PM (15 occurrences)
Last logged: 2:43:35 PM

/usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:85: SyntaxWarning: invalid escape sequence '\d' pattern = "userId=([\d]+)"
/usr/local/lib/python3.12/site-packages/ppadb/plugins/device/utils.py:102: SyntaxWarning: invalid escape sequence '\d' pattern = "versionName=([\d\.]+)"
/usr/local/lib/python3.12/site-packages/ppadb/plugins/device/wm.py:12: SyntaxWarning: invalid escape sequence '\s' SIZE_RE = 'Physical size:\s([\d]+)x([\d]+)'
/usr/local/lib/python3.12/site-packages/ppadb/plugins/device/traffic.py:36: SyntaxWarning: invalid escape sequence '\d' pattern = "userId=([\d]+)"
/usr/local/lib/python3.12/site-packages/ppadb/plugins/device/cpustat.py:90: SyntaxWarning: invalid escape sequence '\s' "cpu\s+([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s([\d]+)\s")