]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
update regex for deprecation warning
authorAarron Lee <aclee91@gmail.com>
Sun, 19 Nov 2023 21:11:44 +0000 (16:11 -0500)
committerAlessandro Astone <ales.astone@gmail.com>
Sun, 19 Nov 2023 23:48:39 +0000 (00:48 +0100)
tools/helpers/net.py

index c20a95bc5566f2660fa30799147b62120cb76cd7..b267357af6863bf6aadd4ec51009e6e19f214c98 100644 (file)
@@ -31,6 +31,6 @@ def get_device_ip_address():
 
     try:
         with open(lease_file) as f:
 
     try:
         with open(lease_file) as f:
-            return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
+            return re.search(r"(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
     except:
     except:
-        pass
\ No newline at end of file
+        pass