[pypy-svn] r79986 - pypy/branch/more-posix/pypy/rlib
arigo at codespeak.net
arigo at codespeak.net
Sat Dec 11 16:58:16 CET 2010
Author: arigo
Date: Sat Dec 11 16:58:15 2010
New Revision: 79986
Modified:
pypy/branch/more-posix/pypy/rlib/rposix.py
Log:
mkfifo() needs to be added there too.
Modified: pypy/branch/more-posix/pypy/rlib/rposix.py
==============================================================================
--- pypy/branch/more-posix/pypy/rlib/rposix.py (original)
+++ pypy/branch/more-posix/pypy/rlib/rposix.py Sat Dec 11 16:58:15 2010
@@ -135,6 +135,13 @@
else:
return os.rmdir(path.as_bytes())
+ at specialize.argtype(0)
+def mkfifo(path, mode):
+ if isinstance(path, str):
+ os.mkfifo(path, mode)
+ else:
+ os.mkfifo(path.as_bytes(), mode)
+
if os.name == 'nt':
import nt
def _getfullpathname(path):
More information about the Pypy-commit
mailing list