Author: Justin Peel <[email protected]>
Branch:
Changeset: r46832:db8707a7079e
Date: 2011-08-27 16:02 -0600
http://bitbucket.org/pypy/pypy/changeset/db8707a7079e/
Log: (alex gaynor) fix getlogin to not break translation
diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -383,7 +383,7 @@
return extdef([int, int], s_None, llimpl=dup2_llimpl,
export_name="ll_os.ll_os_dup2")
- @registering(os.getlogin, condition=not _WIN32)
+ @registering_if(os, "getlogin", condition=not _WIN32)
def register_os_getlogin(self):
os_getlogin = self.llexternal('getlogin', [], rffi.CCHARP)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit