Change division to floor division for Python3 compatibility (Bug 417233).
authorPaul Varner <fuzzyray@gentoo.org>
Thu, 24 May 2012 05:54:59 +0000 (00:54 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Tue, 19 Jun 2012 20:48:07 +0000 (15:48 -0500)
pym/gentoolkit/glsa/__init__.py

index af97ac6876dd7bffb55137aa2c922414a488b32f..9e5a83f9a285447e5db8e053f8e59b6898348717 100644 (file)
@@ -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: