1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/tevent
Noel Power 702e85e48f lib/tevent: Additionally accept unicode as string param in Py2
With the changes to make samba python code Py2/Py3 compatible there
now are many instances where string content is decoded.
Decoded string variables in Py2 are returned as the unicode type. Many
Py2 c-module functions that take string arguments only check for the
string type. However now it's quite possibe the content formally passed
as a string argument is now passed as unicode after being decoded,
such arguments are rejected and code can fail subtly. This only affects
places where the type is directly checked e.g. via PyStr_Check etc.
arguments that are parsed by ParseTuple* functions generally already
accept both string and unicode (if 's', 'z', 's*' format specifiers
are used)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-04-30 15:43:19 +02:00
..
ABI tevent: version 0.9.36 2018-02-23 04:09:18 +01:00
doc tevent_tutorial: Fix tevent_thread referencing 2016-09-16 05:16:00 +02:00
bindings.py pytalloc: Improve timer wrapper, and test it 2015-06-10 06:06:19 +02:00
configure ldb/tevent: Fix detection of waf paths. 2010-09-28 09:12:41 +02:00
doxy.config tevent: Link the tutorial on the mainpage. 2013-06-12 19:54:30 +02:00
echo_server.c lib/async_req/async_sock.c set socket close on exec 2017-12-18 04:38:19 +01:00
Makefile waf: ensure "make dist" works from a clean git tree for all libraries 2011-01-08 02:35:22 +01:00
pytevent.c lib/tevent: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
testsuite.c tevent: Fix CID 1414792 Unchecked return value 2018-04-11 19:07:24 +02:00
tevent_debug.c lib/tevent: Add trace point callback 2012-06-08 19:00:05 +02:00
tevent_epoll.c tevent: Add threaded immediate activation 2016-08-24 01:33:48 +02:00
tevent_fd.c Return NULL if tevent_add_fd() is passed a negative fd 2011-02-14 17:47:03 +01:00
tevent_immediate.c tevent: remove unneeded type argument from DLIST_ADD_END 2016-02-06 21:48:17 +01:00
tevent_internal.h lib: tevent: Minor cleanup. wakeup_fd can always be gotten from the event context. 2017-11-17 12:43:01 +01:00
tevent_liboop.c tevent: Fix a comment 2013-01-18 00:05:37 +01:00
tevent_poll.c tevent: Add threaded immediate activation 2016-08-24 01:33:48 +02:00
tevent_port.c tevent: Add threaded immediate activation 2016-08-24 01:33:48 +02:00
tevent_queue.c tevent: add tevent_queue_entry_untrigger() 2018-02-23 04:09:18 +01:00
tevent_req.c tevent: handle passing req = NULL to tevent_req_print() 2017-07-21 23:31:03 +02:00
tevent_signal.c tevent: Move the async wakeup pipe to common 2016-08-24 01:33:48 +02:00
tevent_standard.c tevent: Clarify apparently useless conditions 2016-07-12 13:56:41 +02:00
tevent_threads.c lib: tevent: Minor cleanup. wakeup_fd can always be gotten from the event context. 2017-11-17 12:43:01 +01:00
tevent_timed.c tevent: Add tevent_update_timer() 2016-10-05 00:06:21 +02:00
tevent_util.c tevent: Set FD_CLOEXEC on epoll handle 2011-08-11 14:38:53 -04:00
tevent_util.h Revert "tevent: avoid -Wtautological-compare errors with gcc6" 2016-07-15 00:54:12 +02:00
tevent_wakeup.c tevent: Remove a pointless goto 2013-08-16 16:50:23 +02:00
tevent.c lib: tevent: Remove select backend. 2017-09-16 08:35:39 +02:00
tevent.h tevent: Fix callers of tevent_req_set_endtime 2018-04-24 19:41:15 +02:00
tevent.pc.in tevent: Update flags in tevent pkgconfig file 2014-04-04 21:35:34 +02:00
tevent.py tevent: remove shebang from tevent.py 2016-12-08 22:12:12 +01:00
wscript tevent: version 0.9.36 2018-02-23 04:09:18 +01:00