diff options
| author | Andy Kittner <andkit@gmx.de> | 2011-01-27 00:21:21 +0100 |
|---|---|---|
| committer | Paul Varner <fuzzyray@gentoo.org> | 2011-01-28 11:26:32 -0600 |
| commit | 01d40ffed91033119bae05dac5c9cea86b94aa2e (patch) | |
| tree | e2235319997db40a4cac2f3f02395dcb0c69c2a8 /pym | |
| parent | 809fc667867c33ef1cb829af7f9061431605e3ab (diff) | |
| download | gentoolkit-01d40ffed91033119bae05dac5c9cea86b94aa2e.tar.gz | |
Fix unicode vs. bytes issue in glsa-check (#341293)
Diffstat (limited to 'pym')
| -rw-r--r-- | pym/gentoolkit/glsa/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/gentoolkit/glsa/__init__.py b/pym/gentoolkit/glsa/__init__.py index ab03947..af97ac6 100644 --- a/pym/gentoolkit/glsa/__init__.py +++ b/pym/gentoolkit/glsa/__init__.py @@ -622,6 +622,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 = int(self.config["PRINTWIDTH"]) outstream.write(center("GLSA %s: \n%s" % (self.nr, self.title), width)+"\n") |
