diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-11 10:42:22 +0100 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2015-08-11 11:12:54 +0100 |
commit | ac33d35632ad127e7a27d10c7e7bee2e8a70496f (patch) | |
tree | 0f84875f74b48bd675d6df9c9c031ecf89712297 /python | |
parent | 54baf43c700138518c678cee87c439d3a9335aa8 (diff) | |
download | brotli-ac33d35632ad127e7a27d10c7e7bee2e8a70496f.zip brotli-ac33d35632ad127e7a27d10c7e7bee2e8a70496f.tar.gz brotli-ac33d35632ad127e7a27d10c7e7bee2e8a70496f.tar.bz2 |
[brotlimodule.cc] add __version__ string attribute to brotli module
Diffstat (limited to 'python')
-rw-r--r-- | python/brotlimodule.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/brotlimodule.cc b/python/brotlimodule.cc index 066219c..4294664 100644 --- a/python/brotlimodule.cc +++ b/python/brotlimodule.cc @@ -9,6 +9,8 @@ #define PyInt_AsLong PyLong_AsLong #endif +#define BROTLI_VERSION "0.1.0" + using namespace brotli; static PyObject *BrotliError; @@ -243,5 +245,7 @@ PyMODINIT_FUNC INIT_BROTLI(void) { PyModule_AddIntConstant(m, "MODE_TEXT", (int) BrotliParams::Mode::MODE_TEXT); PyModule_AddIntConstant(m, "MODE_FONT", (int) BrotliParams::Mode::MODE_FONT); + PyModule_AddStringConstant(m, "__version__", BROTLI_VERSION); + RETURN_BROTLI; } |