summaryrefslogtreecommitdiffstats
path: root/pym/portage/glsa.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/glsa.py')
-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")