Make the remaining ambiguous divisions python 3 compatible.

Refer to #256
This commit is contained in:
Eklavya Sharma 2016-03-11 14:06:04 +05:30 committed by Tim Abbott
parent 14130a84ca
commit 37f9520666
3 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ It must be run on a machine that is using the live database for the
Django ORM. Django ORM.
""" """
from __future__ import print_function from __future__ import print_function
from __future__ import division
import datetime import datetime
import sys import sys

View File

@ -7,6 +7,7 @@ It must be run on a machine that is using the live database for the
Django ORM. Django ORM.
""" """
from __future__ import print_function from __future__ import print_function
from __future__ import division
import datetime import datetime
import os import os

View File

@ -82,6 +82,7 @@ Qual a diferen
""" """
from __future__ import print_function from __future__ import print_function
from __future__ import division
import socket, six.moves._thread, select import socket, six.moves._thread, select
PORT = 8085 PORT = 8085
@ -193,7 +194,7 @@ class ConnectionHandler(object):
print('Connected') print('Connected')
def _read_write(self): def _read_write(self):
time_out_max = self.timeout/3 time_out_max = self.timeout//3
socs = [self.client, self.target] socs = [self.client, self.target]
count = 0 count = 0
while True: while True: