diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-10 11:41:07 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-10 11:41:07 -0800 |
commit | 8dfb0b16b1fb25012c3ec0189509af3048db562c (patch) | |
tree | 3030d7e050e0a0fd10245c007354a7a1b0785245 | |
parent | 93c60fc277e37109a4ead36f69a6a50b7f72b229 (diff) | |
download | portage-8dfb0b16b1fb25012c3ec0189509af3048db562c.tar.gz portage-8dfb0b16b1fb25012c3ec0189509af3048db562c.tar.bz2 portage-8dfb0b16b1fb25012c3ec0189509af3048db562c.zip |
movefile.py: open /dev/null in binary mode
-rw-r--r-- | pym/portage/util/movefile.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |