From: Douglas Bagnall Date: Wed, 28 Apr 2021 01:04:57 +0000 (+0000) Subject: python: remove all 'from __future__ import division' X-Git-Tag: tevent-0.11.0~1010 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a95b22aa1cf9bacba57d094a1ec178ee77cd63;p=thirdparty%2Fsamba.git python: remove all 'from __future__ import division' This made '//' and '/' in Python 2 behave as in Python 3. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py index 87efca61eca..e3f281f2327 100644 --- a/python/samba/emulate/traffic.py +++ b/python/samba/emulate/traffic.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -from __future__ import division import time import os diff --git a/python/samba/graph.py b/python/samba/graph.py index 0cfe951d7f7..a338fd44a8d 100644 --- a/python/samba/graph.py +++ b/python/samba/graph.py @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from __future__ import division from samba import colour import sys from itertools import cycle, groupby diff --git a/python/samba/netcmd/domain.py b/python/samba/netcmd/domain.py index 841372de254..6b1e3ba3f7e 100644 --- a/python/samba/netcmd/domain.py +++ b/python/samba/netcmd/domain.py @@ -22,7 +22,6 @@ # along with this program. If not, see . # -from __future__ import division import samba.getopt as options import ldb import os diff --git a/python/samba/upgradehelpers.py b/python/samba/upgradehelpers.py index d012cea5bd2..7f92b45f3fb 100644 --- a/python/samba/upgradehelpers.py +++ b/python/samba/upgradehelpers.py @@ -19,7 +19,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from __future__ import division """Helpers used for upgrading between different database formats.""" import os