Commit Graph

14 Commits

Author SHA1 Message Date
mrKazzila
336420b5ee
style: change double quotes to single quotes (where possible)
style: sort imports & format parameters onto separate lines for better clarity

Format all python files using `black`
2024-01-10 13:31:43 -08:00
Xiangzhuang Shen
cc2110ef4c fix:python pep8 2023-09-22 15:40:12 +08:00
Gerardo Tatzati
2d7ce86c40 Update emit_log_direct.py 2023-07-27 09:40:03 -04:00
Egor
671657df79
Bug fix
The logic of tutorial which goes behind this line is "If you have more than 1 word to be sent, then mark the first as severity (the level of the log msg), and then everything else as the message itself". But with the current implementation, the first word always considered as severity even if no other words were given because `len(sys.argv) > 1` is true when at least one arg was given(then, the sys.argv contains the name of the file and the arg, and length=2)
2019-07-18 11:19:06 +03:00
Luke Bakken
8d392f4772
Update for Pika 1.0.0, yapf formatting 2019-02-11 09:56:04 -08:00
Michael Klishin
8c771b2229
Python tutorial 4: allow for optional message body
Closes #188.
2018-11-26 17:05:49 +08:00
Brian Stajkowski
56e7678246 Correct Emit Log Direct
Sys.argv will always be greater than 1, but in the instance
where the severity is supplied it would be greather than 2.
2016-12-19 12:37:41 -08:00
Mandar Kulkarni
d1266eb6a9 Fix: deprecation warning for type in exchange_declare 2016-09-06 15:02:49 +05:30
Olof-Joachim Frahm
88f868d021 Fix Python scripts for Python 3 compatibility. 2015-11-11 17:32:37 +00:00
Marek Majkowski
596faaf044 Python examples updated to recent pika 2011-03-14 17:30:12 +00:00
Marek Majkowski
49cd80ee60 use exclusive instead of auto-delete for #4 2010-12-13 15:42:37 +00:00
Marek Majkowski
1d82921b17 Asserts aren't required. 2010-12-03 12:25:00 +00:00
Marek Majkowski
2ff33f9e61 Connection.close is required to make sure the buffers are flushed. 2010-12-01 17:00:45 +00:00
Marek Majkowski
777be256a7 Code samples for next tutorial. 2010-11-26 14:53:22 +00:00