The first batch of changes recommended by the fixdiv tool. These are
mostly changes of / operators into //. Once or twice I did more or
less than recommended.
diff --git a/Lib/bisect.py b/Lib/bisect.py
index d311337..c9e6c60 100644
--- a/Lib/bisect.py
+++ b/Lib/bisect.py
@@ -12,7 +12,7 @@
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if x < a[mid]: hi = mid
else: lo = mid+1
a.insert(lo, x)
@@ -33,7 +33,7 @@
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if x < a[mid]: hi = mid
else: lo = mid+1
return lo
@@ -52,7 +52,7 @@
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if a[mid] < x: lo = mid+1
else: hi = mid
a.insert(lo, x)
@@ -72,7 +72,7 @@
if hi is None:
hi = len(a)
while lo < hi:
- mid = (lo+hi)/2
+ mid = (lo+hi)//2
if a[mid] < x: lo = mid+1
else: hi = mid
return lo