From de49cc90a8bebe5231ba9b143e888ffcf20ff4ad Mon Sep 17 00:00:00 2001 From: scarabeus Date: Tue, 2 Nov 2010 13:53:19 +0000 Subject: Fix error on rotate content and py3 compat. svn path=/trunk/gentoolkit/; revision=842 --- pym/gentoolkit/eshowkw/__init__.py | 2 +- pym/gentoolkit/eshowkw/display_pretty.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index 6bb4e54..39da052 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -38,7 +38,7 @@ def process_display(package, keywords, dbapi): header_length = portdata.version_length content_length = keywords.length else: - header = string_rotator().rotateContent(portdata.content, portdata.content_length, order, bold) + header = string_rotator().rotateContent(portdata.content, portdata.content_length, bold) content = keywords.content sep = [''.ljust(keywords.length) for x in range(portdata.slot_length-1)] content.extend(sep) diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py index f3c52ff..2bd5426 100644 --- a/pym/gentoolkit/eshowkw/display_pretty.py +++ b/pym/gentoolkit/eshowkw/display_pretty.py @@ -21,7 +21,7 @@ def display(plain_list, rotated_list, plain_width, rotated_height, cp, toplist = if toplist == 'archlist': data_printout.extend(plain_list) output.extend(data_printout) - print print_content(output) + print(print_content(output)) def align_string(string, align, length): """Align string to the specified alignment (left or right, and after rotation it becames top and bottom)""" -- cgit v1.2.3