From 564d047d0ea97e3bd9762f075c31db818230ac2c Mon Sep 17 00:00:00 2001 From: Julian Vilas Date: Fri, 31 May 2024 12:38:34 +0200 Subject: [PATCH] pyBusPirateLite/I2C.py: use raw string for sniffer The I2C.sniffer function documentation raises a SyntaxWarning in more recent python versions (3.12 in this case), complaining about a invalid escape sequence '\ '. This commit makes the string to be interpreted as raw instead. --- pyBusPirateLite/I2C.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyBusPirateLite/I2C.py b/pyBusPirateLite/I2C.py index c3cffda..57b2c37 100644 --- a/pyBusPirateLite/I2C.py +++ b/pyBusPirateLite/I2C.py @@ -157,7 +157,7 @@ def nack(self): raise ProtocolError('Could not send NACK') def sniffer(self): - """ Sniff traffic on an I2C bus. + r""" Sniff traffic on an I2C bus. [/] - Start/stop bit \ - escape character precedes a data byte value