ansible/source_control
Michael Scherer 5310bab12f Port the module to run on python 3 (#4496)
One of the usual issue is that run_command return bytes,
so we have to adapt the string to either be bytes too,
or convert to string.

This result into that kind of traceback:

    Traceback (most recent call last):
      File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 1009, in <module>
        main()
      File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 873, in main
        git_version_used = git_version(git_path, module)
      File \"/tmp/ansible_ej32yu2w/ansible_module_git.py\", line 788, in git_version
        rematch = re.search('git version (.*)$', out)
      File \"/usr/lib64/python3.5/re.py\", line 173, in search
        return _compile(pattern, flags).search(string)
    TypeError: cannot use a string pattern on a bytes-like object

Another issue is filter being a object instead of a list.
2016-08-29 09:00:53 -07:00
..
__init__.py package files 2014-09-26 11:05:47 -04:00
git.py Port the module to run on python 3 (#4496) 2016-08-29 09:00:53 -07:00
hg.py Fix hg for python3 (#4528) 2016-08-24 11:14:45 -07:00
subversion.py Revert "Reset all locale environment variables before running svn commands" (#4358) 2016-08-08 10:18:50 -04:00