Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 68281:ce93b75add15 2.7
Port build identification from default branch.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 06 Mar 2011 10:42:21 +0100 |
| parents | b36cb4602e21 |
| children | ee5350f1d0c2 |
line wrap: on
line diff
--- a/Python/sysmodule.c Sun Mar 06 10:41:54 2011 +0100 +++ b/Python/sysmodule.c Sun Mar 06 10:42:21 2011 +0100 @@ -1462,6 +1462,9 @@ SET_SYS_FROM_STRING("subversion", Py_BuildValue("(ssz)", "CPython", branch, svn_revision)); + SET_SYS_FROM_STRING("_mercurial", + Py_BuildValue("(szz)", "CPython", _Py_hgidentifier(), + _Py_hgversion())); SET_SYS_FROM_STRING("dont_write_bytecode", PyBool_FromLong(Py_DontWriteBytecodeFlag)); SET_SYS_FROM_STRING("api_version",
