eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py

changeset 8205
4a0f1f896341
parent 8000
47b15df088e4
child 8218
7c09585bd960
equal deleted inserted replaced
8204:fd477cded1c1 8205:4a0f1f896341
500 pos = [] 500 pos = []
501 foundLeftQuote = False 501 foundLeftQuote = False
502 502
503 for index, character in enumerate(text): 503 for index, character in enumerate(text):
504 if foundLeftQuote is False: 504 if foundLeftQuote is False:
505 if character == "'" or character == '"': 505 if character in ("'", '"'):
506 foundLeftQuote = True 506 foundLeftQuote = True
507 quote = character 507 quote = character
508 leftPos = index 508 leftPos = index
509 else: 509 else:
510 if character == quote and text[index - 1] != "\\": 510 if character == quote and text[index - 1] != "\\":

eric ide

mercurial