git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4/param: Additionally accept unicode as string param in Py2
[vlendec/samba-autobuild/.git]
/
source4
/
param
/
pyparam_util.c
diff --git
a/source4/param/pyparam_util.c
b/source4/param/pyparam_util.c
index 512a8b1cdb71b36acb273af717677172eab325a5..917caf809e50d09b6250f37253b826f0bda88213 100644
(file)
--- a/
source4/param/pyparam_util.c
+++ b/
source4/param/pyparam_util.c
@@
-34,7
+34,7
@@
_PUBLIC_ struct loadparm_context *lpcfg_from_py_object(TALLOC_CTX *mem_ctx, PyOb
PyTypeObject *lp_type;
bool is_lpobj;
- if (PyStr_Check(py_obj)) {
+ if (PyStr_Check(py_obj)
|| PyUnicode_Check(py_obj)
) {
lp_ctx = loadparm_init_global(false);
if (lp_ctx == NULL) {
return NULL;