| 1 |
Fromscip-debian debian pyric 0.1.6.4+git20170421.0562b17-1 pyric/patches/`0001-Use-r-string-for-regexp.patch`#From.: Edward Betts <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian pyric 0.1.6.4+git20170421.0562b17-1 pyric/patches/`0001-Use-r-string-for-regexp.patch`#Date.: Wed, 5 Jun 2024 07:33:40 +0100 |
| 3 |
Subjectscip-debian debian pyric 0.1.6.4+git20170421.0562b17-1 pyric/patches/`0001-Use-r-string-for-regexp.patch`#Subject.: Use r-string for regexp |
| 4 |
|
| 5 |
--- |
| 6 |
pyric/pyw.py | 4 ++-- |
| 7 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 8 |
|
| 9 |
diff --git a/pyric/pyw.pyscip-debian debian pyric 0.1.6.4+git20170421.0562b17-1 pyric/upstream/`pyric/pyw.py`: b/pyric/pyw.pyscip-debian debian pyric 0.1.6.4+git20170421.0562b17-1 pyric/upstream/`pyric/pyw.py`: |
| 10 |
index b0d4833..9eb9b30 100644 |
| 11 |
--- a/pyric/pyw.py |
| 12 |
+++ b/pyric/pyw.py |
| 13 |
@@ -1837,8 +1837,8 @@ def stainfo(card, mac, nlsock=None): |
| 14 |
#### FILE PRIVATE #### |
| 15 |
################################################################################ |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
+IPADDR = re.compile(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$") # re for ip addr |
| 20 |
+MACADDR = re.compile(r"^([0-9a-fA-F]{2}:){5}([0-9a-fA-F]{2})$") # re for mac addr |
| 21 |
|
| 22 |
|
| 23 |
def _hex2ip4_(v): |