community.general/lib/ansible/plugins
Toshio Kuratomi 84a59e472b Be explicit about pickle protocol and encoding (#24454)
On Python3 and Python2 use pickle slightly differently so we need to be
explicit about some things.

If pickles could be shared between python2 and python3, as in
ansible-connection and the pickle cache, we need to specify the protocol
to use when dumping and the encoding to use for byte strings when
loading.

The dumping protocol needs to be no higher than 2 as python-2 only
supports up to protocol 2.  The encoding should usually be 'bytes' so
that python2 str type becomes python3 bytes type.  However, doing this
means that we must make sure that the objects being serialized properly
make their strings into text strings except when they're supposed to be
bytes.  If strings are improperly byte strings, they may cause
tracebacks on the receiving end
2017-05-12 18:04:48 -07:00
..
action Fix template not showing a diff with a directory 2017-05-11 20:37:31 -07:00
cache Be explicit about pickle protocol and encoding (#24454) 2017-05-12 18:04:48 -07:00
callback Fix circular import with unsafe_proxy, template, and vars 2017-04-28 15:35:30 -07:00
connection Fix for persistent connection plugin on Python3 (#24431) 2017-05-12 09:13:51 -07:00
filter Add a new filter: strftime. Use the well known function to format a date output. (#23832) 2017-04-21 11:48:45 -07:00
lookup Optionally return raw data from URL lookup using split_lines=False 2017-05-12 11:02:49 -04:00
shell improve become_method: runas error handling (#23328) 2017-04-06 01:34:30 -07:00
strategy Avoid default serialization of classes in dump_attrs 2017-05-11 16:28:07 -05:00
terminal Fix for persistent connection plugin on Python3 (#24431) 2017-05-12 09:13:51 -07:00
test Migrate most uses of if type() to if isinstance() 2017-04-04 08:17:20 -07:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py Graceful error message for abstract base classes in PluginLoader 2017-02-22 10:27:29 -05:00