summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kloeckner <inform@tiker.net>2021-06-23 18:24:43 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-07-25 08:42:39 (GMT)
commitbbadbd34c74ef2ef4da0ccda7d5250987374bcbb (patch)
tree930fd7337d40b573d05130cf696e0a731184e047
parent04e35d437e02a37f17075fa63eb93596916ca0ee (diff)
Fix escape sequences in wasptool
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
-rwxr-xr-xtools/wasptool4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wasptool b/tools/wasptool
index f7499c5..05a4486 100755
--- a/tools/wasptool
+++ b/tools/wasptool
@@ -228,7 +228,7 @@ def handle_rtc(c):
def check_rtc(c):
c.sendline('print(watch.rtc.get_localtime())')
- c.expect('\(([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+)\)')
+ c.expect(r'\(([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+)\)')
t = time.localtime()
watch_hms = (int(c.match[4]), int(c.match[5]), int(c.match[6]))
@@ -390,7 +390,7 @@ if __name__ == '__main__':
console.logfile = io.StringIO()
try:
- console.expect('Connect.*\(([0-9A-F:]*)\)')
+ console.expect(r'Connect.*\(([0-9A-F:]*)\)')
except pexpect.exceptions.TIMEOUT:
print('ERROR: Cannot find suitable wasp-os device')
if not args.verbose: