def _inline_documentation_files(app_spec, src_dir):
    # Inline description from a readme file
    if 'description' not in app_spec:
        readme_filename = None
        for filename in 'README.md', 'Readme.md', 'readme.md':
            if os.path.exists(os.path.join(src_dir, filename)):
                readme_filename = filename
                break
        if readme_filename is not None:
            with open(os.path.join(src_dir, readme_filename)) as fh:
                app_spec['description'] = fh.read()

    # Inline developerNotes from Readme.developer.md
    if 'developerNotes' not in app_spec:
        for filename in 'README.developer.md', 'Readme.developer.md', 'readme.developer.md':
            if os.path.exists(os.path.join(src_dir, filename)):
                with open(os.path.join(src_dir, filename)) as fh:
                    app_spec['developerNotes'] = fh.read()
                break
Closes the socket.
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/app_builder.py/_inline_documentation_files--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/SysLogHandler.close