We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e9dc5 commit 2185f27Copy full SHA for 2185f27
README.rst
@@ -90,7 +90,7 @@ Example usage
90
import can
91
92
# create a bus instance
93
- # many other interfaces are supported as well (see below)
+ # many other interfaces are supported as well (see documentation)
94
bus = can.Bus(interface='socketcan',
95
channel='vcan0',
96
receive_own_messages=True)
@@ -102,7 +102,7 @@ Example usage
102
103
# iterate over received messages
104
for msg in bus:
105
- print("{:X}: {}".format(msg.arbitration_id, msg.data))
+ print(f"{msg.arbitration_id:X}: {msg.data}")
106
107
# or use an asynchronous notifier
108
notifier = can.Notifier(bus, [can.Logger("recorded.log"), can.Printer()])
0 commit comments