Gentoo Archives: gentoo-commits

From: Paul Varner <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/glsa/
Date: Tue, 19 Jun 2012 20:50:16
Message-Id: 1340138887.ebba27e8de436d790e7a55eb1e35d948143dffde.fuzzyray@gentoo
commit:     ebba27e8de436d790e7a55eb1e35d948143dffde
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Thu May 24 05:54:59 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Tue Jun 19 20:48:07 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ebba27e8

Change division to floor division for Python3 compatibility (Bug 417233).

---
 pym/gentoolkit/glsa/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/glsa/__init__.py b/pym/gentoolkit/glsa/__init__.py
index af97ac6..9e5a83f 100644
--- a/pym/gentoolkit/glsa/__init__.py
+++ b/pym/gentoolkit/glsa/__init__.py
@@ -60,7 +60,7 @@ def center(text, width):
 	"""
 	if len(text) >= width:
 		return text
-	margin = (width-len(text))/2
+	margin = (width-len(text))//2
 	rValue = " "*margin
 	rValue += text
 	if 2*margin + len(text) == width: