Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
Refer #256
This commit is contained in:
parent
d998bc400a
commit
37365ba5a3
21 changed files with 53 additions and 32 deletions
|
@ -21,6 +21,7 @@
|
|||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
import optparse
|
||||
|
@ -43,7 +44,7 @@ parser.add_option_group(zulip.generate_option_group(parser))
|
|||
client = zulip.init_from_options(options)
|
||||
|
||||
def print_message(message):
|
||||
print message
|
||||
print(message)
|
||||
|
||||
# This is a blocking call, and will continuously poll for new messages
|
||||
client.call_on_each_message(print_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue