ansible/docs/bin
Austin S. Hemmelgarn d5ae9d1018 Fix build on Python 3.x by using sys.maxsize. (#30424)
As outlined in https://docs.python.org/3.1/whatsnew/3.0.html#integers,
sys.maxint doesn't exist anymore in Python 3.x because there is no maximum
value for integers in Python 3.x.  sys.maxsize is present in all
versions of Python that are currently supported by Ansible, so use that
instead as an arbitrarily large index value.

Fixes the following build error when building with Python 3.x:
make -j1 docs
mkdir -p ./docs/man/man1/ ; \
PYTHONPATH=./lib docs/bin/generate_man.py --template-file=docs/templates/man.j2 --output-dir=docs/man/man1/ --output-format man lib/ansible/cli/*.py
Traceback (most recent call last):
  File "docs/bin/generate_man.py", line 253, in <module>
    allvars[cli_name] = opts_docs(cli_class_name, cli_name)
  File "docs/bin/generate_man.py", line 119, in opts_docs
    'long_desc': trim_docstring(cli.__doc__),
  File "docs/bin/generate_man.py", line 34, in trim_docstring
    indent = sys.maxint
AttributeError: module 'sys' has no attribute 'maxint'
make: *** [Makefile:347: generate_asciidoc] Error 1
2017-09-19 16:23:16 -04:00
..
dump_config.py Generate a rst for config and env options from base.yml (#28739) 2017-08-31 10:11:05 -04:00
dump_keywords.py docs: PEP8 compliance (#24681) 2017-05-30 18:08:25 +01:00
generate_man.py Fix build on Python 3.x by using sys.maxsize. (#30424) 2017-09-19 16:23:16 -04:00
plugin_formatter.py Generate plugin rst (#28901) 2017-09-19 11:14:27 -04:00
testing_formatter.sh Initial ansible-test sanity docs. (#26775) 2017-07-14 14:24:45 +01:00