From 8dfb0b16b1fb25012c3ec0189509af3048db562c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 10 Dec 2011 11:41:07 -0800 Subject: [PATCH] movefile.py: open /dev/null in binary mode --- pym/portage/util/movefile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2