diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-05-04 09:05:23 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-05-04 09:05:23 +0300 |
commit | ed74161b7e5b90ba886926ced14ba3aca018a4f4 (patch) | |
tree | 85fd8fa3f12405a6180e94345085038738025220 /python/rpmmodule.c | |
parent | f2c4eebae0c33c01274b2da1ecb19f62beecb21f (diff) | |
download | librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.tar.gz librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.tar.bz2 librpm-tizen-ed74161b7e5b90ba886926ced14ba3aca018a4f4.zip |
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.
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r-- | python/rpmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |