Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: Modules/posixmodule.c

Issue 16353: add function to os module for getting path to default shell
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Lib/os.py ('K') | « Lib/os.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/posixmodule.c Sat May 21 14:56:53 2016 +0300
+++ b/Modules/posixmodule.c Mon May 23 10:56:13 2016 +0200
@@ -13247,6 +13247,14 @@
}
PyModule_AddObject(m, "_have_functions", list);
+#ifdef __ANDROID__
+ v = Py_True;
+#else
+ v = Py_False;
+#endif
+ Py_INCREF(v);
+ PyModule_AddObject(m, "is_android", v);
+
initialized = 1;
return m;
« Lib/os.py ('K') | « Lib/os.py ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+