projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a13c673
)
Handle missing mkfifo for Jython.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 16 Oct 2012 18:56:13 +0000
(11:56 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 16 Oct 2012 18:56:13 +0000
(11:56 -0700)
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index c7adbd7638e6c31bdc43ded9a1e6af9a7ad85836..667bf6fd99a2d3004277b902c028985462448e8d 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-288,12
+288,17
@@
class _unicode_module_wrapper(object):
import os as _os
_os_overrides = {
id(_os.fdopen) : _os.fdopen,
- id(_os.mkfifo) : _os.mkfifo,
id(_os.popen) : _os.popen,
id(_os.read) : _os.read,
id(_os.system) : _os.system,
}
+
+try:
+ _os_overrides[id(_os.mkfifo)] = _os.mkfifo
+except AttributeError:
+ pass # Jython
+
if hasattr(_os, 'statvfs'):
_os_overrides[id(_os.statvfs)] = _os.statvfs