eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py

changeset 8205
4a0f1f896341
parent 8000
47b15df088e4
child 8218
7c09585bd960
diff -r fd477cded1c1 -r 4a0f1f896341 eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py
--- 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

eric ide

mercurial