From 37f95206665ae3c4a5d27c9ab315faeb6aebd403 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Fri, 11 Mar 2016 14:06:04 +0530 Subject: [PATCH] Make the remaining ambiguous divisions python 3 compatible. Refer to #256 --- .../files/nagios_plugins/check_send_receive_time | 1 + .../files/nagios_plugins/check_user_zephyr_mirror_liveness | 1 + tools/python-proxy | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/puppet/zulip_internal/files/nagios_plugins/check_send_receive_time b/puppet/zulip_internal/files/nagios_plugins/check_send_receive_time index 54bf1660b0..b5abcd8942 100755 --- a/puppet/zulip_internal/files/nagios_plugins/check_send_receive_time +++ b/puppet/zulip_internal/files/nagios_plugins/check_send_receive_time @@ -9,6 +9,7 @@ It must be run on a machine that is using the live database for the Django ORM. """ from __future__ import print_function +from __future__ import division import datetime import sys diff --git a/puppet/zulip_internal/files/nagios_plugins/check_user_zephyr_mirror_liveness b/puppet/zulip_internal/files/nagios_plugins/check_user_zephyr_mirror_liveness index ff2bc41a08..0ad60aab44 100755 --- a/puppet/zulip_internal/files/nagios_plugins/check_user_zephyr_mirror_liveness +++ b/puppet/zulip_internal/files/nagios_plugins/check_user_zephyr_mirror_liveness @@ -7,6 +7,7 @@ It must be run on a machine that is using the live database for the Django ORM. """ from __future__ import print_function +from __future__ import division import datetime import os diff --git a/tools/python-proxy b/tools/python-proxy index c748ac7f36..3c0236c0b8 100755 --- a/tools/python-proxy +++ b/tools/python-proxy @@ -82,6 +82,7 @@ Qual a diferen """ from __future__ import print_function +from __future__ import division import socket, six.moves._thread, select PORT = 8085 @@ -193,7 +194,7 @@ class ConnectionHandler(object): print('Connected') def _read_write(self): - time_out_max = self.timeout/3 + time_out_max = self.timeout//3 socs = [self.client, self.target] count = 0 while True: