Fix error on rotate content and py3 compat.
authorscarabeus <scarabeus@gentoo.org>
Tue, 2 Nov 2010 13:53:19 +0000 (13:53 -0000)
committerscarabeus <scarabeus@gentoo.org>
Tue, 2 Nov 2010 13:53:19 +0000 (13:53 -0000)
svn path=/trunk/gentoolkit/; revision=842

pym/gentoolkit/eshowkw/__init__.py
pym/gentoolkit/eshowkw/display_pretty.py

index 6bb4e54f87c8f96844f1c262b283e9933cac5f17..39da0521266477dc69705e16dbb2f920abb85ad0 100644 (file)
@@ -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)
index f3c52fff9f9f4629a4e62b514cbb287924466b00..2bd5426144ef01bd70f1e7e588278ba9b37d1866 100644 (file)
@@ -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)"""