From ebba27e8de436d790e7a55eb1e35d948143dffde Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Thu, 24 May 2012 00:54:59 -0500 Subject: [PATCH] Change division to floor division for Python3 compatibility (Bug 417233). --- pym/gentoolkit/glsa/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2