1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

python/samba: Py2/Py3 compat change '/' to '//' to ensure int result

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>

Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Apr 30 18:25:25 CEST 2018 on sn-devel-144
This commit is contained in:
Noel Power
2018-04-27 08:15:28 +01:00
committed by Noel Power
parent 141d9081f4
commit 268ad19eee
3 changed files with 7 additions and 4 deletions

View File

@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
from __future__ import division
from samba import colour
import sys
@ -39,8 +40,8 @@ def reformat_graph_label(s):
if '-' in p[2:20]:
q, p = p.split('-', 1)
else:
n = len(p) / 12
b = len(p) / n
n = len(p) // 12
b = len(p) // n
q, p = p[:b], p[b:]
pieces.append(q + '-')
if p: