We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b1e58 commit 21966e9Copy full SHA for 21966e9
1 file changed
docs/src/hal/halmodule.txt
@@ -317,9 +317,9 @@ And have a function to be called:
317
[source,python]
318
----
319
def _on_example_trigger_change(self,pin,userdata=None):
320
- print "pin value changed to:" % (pin.get())
321
- print "pin name= %s" % (pin.get_name())
322
- print "pin type= %d" % (pin.get_type())
+ print "pin value changed to: {}".format(pin.get())
+ print "pin name= {}".format(pin.get_name())
+ print "pin type= {}".format(pin.get_type())
323
324
# this can be called outside the function
325
self.example_trigger.get()
0 commit comments