mirror of
https://github.com/google/brotli.git
synced 2024-11-22 11:40:06 +00:00
[brotlimodule.cc] add __version__ string attribute to brotli module
This commit is contained in:
parent
54baf43c70
commit
ac33d35632
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user