--- a/eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py Thu Apr 08 18:27:47 2021 +0200 @@ -502,7 +502,7 @@ for index, character in enumerate(text): if foundLeftQuote is False: - if character == "'" or character == '"': + if character in ("'", '"'): foundLeftQuote = True quote = character leftPos = index