summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorAndy Kittner <andkit@gmx.de>2011-01-27 00:21:21 +0100
committerZac Medico <zmedico@gentoo.org>2013-01-18 21:15:18 -0800
commit0d7e395a3227264ff8bcc2c35d024c2b39e07679 (patch)
tree254370172b7a68ba17a12e16a8b5801fb29868d6 /pym
parent812c9ee0778547c0fb918ce4b62c7ba3957f6727 (diff)
downloadportage-0d7e395a3227264ff8bcc2c35d024c2b39e07679.tar.gz
portage-0d7e395a3227264ff8bcc2c35d024c2b39e07679.tar.bz2
portage-0d7e395a3227264ff8bcc2c35d024c2b39e07679.zip
Fix unicode vs. bytes issue in glsa-check (#341293)
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=01d40ffed91033119bae05dac5c9cea86b94aa2e
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/glsa.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/glsa.py b/pym/portage/glsa.py
index c0c69dd2d..1dd8a98b9 100644
--- a/pym/portage/glsa.py
+++ b/pym/portage/glsa.py
@@ -604,6 +604,7 @@ class Glsa:
@param outfile: Stream that should be used for writing
(defaults to sys.stdout)
"""
+ outstream = getattr(outstream, "buffer", outstream)
outstream = codecs.getwriter(encoding)(outstream)
width = 76
outstream.write(("GLSA %s: \n%s" % (self.nr, self.title)).center(width)+"\n")