( completion_data )
| 168 | |
| 169 | |
| 170 | def _GetCompletionInfoField( completion_data ): |
| 171 | info = completion_data.get( 'detailed_info', '' ) |
| 172 | |
| 173 | if 'extra_data' in completion_data: |
| 174 | docstring = completion_data[ 'extra_data' ].get( 'doc_string', '' ) |
| 175 | if docstring: |
| 176 | if info: |
| 177 | info += '\n' + docstring |
| 178 | else: |
| 179 | info = docstring |
| 180 | |
| 181 | # This field may contain null characters e.g. \x00 in Python docstrings. Vim |
| 182 | # cannot evaluate such characters so they are removed. |
| 183 | return info.replace( '\x00', '' ) |
| 184 | |
| 185 | |
| 186 | def ConvertCompletionDataToVimData( completion_data ): |
no test coverage detected