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:
@ -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:
|
||||
|
Reference in New Issue
Block a user