From: Zac Medico Date: Sat, 10 Dec 2011 21:13:08 +0000 (-0800) Subject: Binpkg: move imports to top X-Git-Tag: v2.2.0_alpha80~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01d85ae3b72022cda50830d6aff61f92b48a19fc;p=portage.git Binpkg: move imports to top --- diff --git a/pym/_emerge/Binpkg.py b/pym/_emerge/Binpkg.py index ba25d3a4b..6c70b19f0 100644 --- a/pym/_emerge/Binpkg.py +++ b/pym/_emerge/Binpkg.py @@ -20,6 +20,7 @@ from portage import _unicode_decode from portage import _unicode_encode import io import logging +import textwrap from portage.output import colorize class Binpkg(CompositeTask): @@ -90,9 +91,8 @@ class Binpkg(CompositeTask): "/var/log/emerge-fetch.log` in another " + \ "terminal.") % (prefetcher.pkg_path, settings["EPREFIX"]) msg_prefix = colorize("GOOD", " * ") - from textwrap import wrap waiting_msg = "".join("%s%s\n" % (msg_prefix, line) \ - for line in wrap(waiting_msg, 65)) + for line in textwrap.wrap(waiting_msg, 65)) if not self.background: writemsg(waiting_msg, noiselevel=-1)