From ed74161b7e5b90ba886926ced14ba3aca018a4f4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 4 May 2010 09:05:23 +0300 Subject: Rename python module version symbol to __version__, add __version_info__ - This seems to be a de-facto standard in python land, as rpm.version hasn't been in any released version we can still change this easily. Suggestion from James Antill. --- python/rpmmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/rpmmodule.c') diff --git a/python/rpmmodule.c b/python/rpmmodule.c index f264efd1f..78340a9d8 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -320,7 +320,7 @@ static int initModule(PyObject *m) addRpmTags(m); - PyModule_AddStringConstant(m, "version", RPMVERSION); + PyModule_AddStringConstant(m, "__version__", RPMVERSION); #define REGISTER_ENUM(val) PyModule_AddIntConstant(m, #val, val) -- cgit v1.2.3