movefile.py: open /dev/null in binary mode
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 19:41:07 +0000 (11:41 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 19:41:07 +0000 (11:41 -0800)
pym/portage/util/movefile.py

index 89fa69c7621060700e5b141c3ba7838d31ce9033..476f8e72adc4fda541c2195ac0c946dc0c4ceecb 100644 (file)
@@ -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)