1 |
commit: ebba27e8de436d790e7a55eb1e35d948143dffde |
2 |
Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 24 05:54:59 2012 +0000 |
4 |
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 19 20:48:07 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ebba27e8 |
7 |
|
8 |
Change division to floor division for Python3 compatibility (Bug 417233). |
9 |
|
10 |
--- |
11 |
pym/gentoolkit/glsa/__init__.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/gentoolkit/glsa/__init__.py b/pym/gentoolkit/glsa/__init__.py |
15 |
index af97ac6..9e5a83f 100644 |
16 |
--- a/pym/gentoolkit/glsa/__init__.py |
17 |
+++ b/pym/gentoolkit/glsa/__init__.py |
18 |
@@ -60,7 +60,7 @@ def center(text, width): |
19 |
""" |
20 |
if len(text) >= width: |
21 |
return text |
22 |
- margin = (width-len(text))/2 |
23 |
+ margin = (width-len(text))//2 |
24 |
rValue = " "*margin |
25 |
rValue += text |
26 |
if 2*margin + len(text) == width: |