diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-03 22:29:53 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-03 22:29:53 +0200 |
commit | 24a9181f25a64937ec0c81ed40e9744de0f164e9 (patch) | |
tree | deeda715acb70fdacde3ae5703ae0a18c9313473 /source4/scripting | |
parent | 1a1c30405198d82746851f5244be901cf5d1ae6b (diff) | |
download | samba-24a9181f25a64937ec0c81ed40e9744de0f164e9.tar.gz samba-24a9181f25a64937ec0c81ed40e9744de0f164e9.tar.bz2 samba-24a9181f25a64937ec0c81ed40e9744de0f164e9.zip |
Avoid using version call for version string.
(This used to be commit 1897cef508c8bea817c510bd9023d794cb983864)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/misc.i | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/scripting/python/misc.i b/source4/scripting/python/misc.i index 1d331215b5..437f02a1ee 100644 --- a/source4/scripting/python/misc.i +++ b/source4/scripting/python/misc.i @@ -77,10 +77,9 @@ bool samdb_set_domain_sid(struct ldb_context *ldb, WERROR dsdb_attach_schema_from_ldif_file(struct ldb_context *ldb, const char *pf, const char *df); -%feature("docstring") samba_version_string "version()\n" - "Obtain the Samba version."; -%rename(version) samba_version_string; -const char *samba_version_string(void); +%feature("docstring") version "version()\n" + "Obtain the Samba version."; +const char *version(void) { return SAMBA_VERSION_STRING; } int dsdb_set_global_schema(struct ldb_context *ldb); %feature("docstring") ldb_register_samba_handlers "register_samba_handlers()\n" "Register Samba-specific LDB modules and schemas."; |