EA-75111 Handle projects with no modules and, hence, no configured docstring format
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 16 Nov 2016 12:39:08 +0000 (15:39 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Wed, 16 Nov 2016 12:49:40 +0000 (15:49 +0300)
commit4cd7b6be1b38bf9d3e08704cf38356d68c5a0caf
treea873fa3e987e5f2067c4fd98de532d91737cdfa9
parentc38ed868d0630ddfe353c597b6834316848b472f
EA-75111 Handle projects with no modules and, hence, no configured docstring format

It can happen in IDEA projects that contains no modules or, presumably,
in PyCharm projects which settings have been corrupted for some reason.
DocStringFormat.PLAIN is used in some cases as a fallback format.
python/src/com/jetbrains/python/documentation/docstrings/DocStringUtil.java
python/src/com/jetbrains/python/documentation/docstrings/PyDocstringGenerator.java
python/src/com/jetbrains/python/psi/impl/PyFunctionBuilder.java