From: Paul Varner Date: Thu, 24 May 2012 05:54:59 +0000 (-0500) Subject: Change division to floor division for Python3 compatibility (Bug 417233). X-Git-Tag: gentoolkit-0.3.0.7~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebba27e8de436d790e7a55eb1e35d948143dffde;p=gentoolkit.git Change division to floor division for Python3 compatibility (Bug 417233). --- 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: