From: Zac Medico Date: Sat, 10 Dec 2011 19:41:07 +0000 (-0800) Subject: movefile.py: open /dev/null in binary mode X-Git-Tag: v2.2.0_alpha80~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8dfb0b16b1fb25012c3ec0189509af3048db562c;p=portage.git movefile.py: open /dev/null in binary mode --- diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py index 89fa69c76..476f8e72a 100644 --- a/pym/portage/util/movefile.py +++ b/pym/portage/util/movefile.py @@ -50,7 +50,7 @@ else: if raise_exception: raise OperationNotSupported("Filesystem containing file '%s' does not support extended attributes" % dest) else: - _devnull = open("/dev/null", "w") + _devnull = open("/dev/null", "wb") try: subprocess.call(["getfattr", "--version"], stdout=_devnull) subprocess.call(["setfattr", "--version"], stdout=_devnull)