eric6/QScintilla/DocstringGenerator/PyDocstringGenerator.py

changeset 8221
0572a215bd2f
parent 8218
7c09585bd960
child 8222
5994b80b8760
equal deleted inserted replaced
8220:006ee31b4835 8221:0572a215bd2f
479 @param pairs list containing pairs of positions 479 @param pairs list containing pairs of positions
480 @type list of tuple of (int, int) 480 @type list of tuple of (int, int)
481 @return flag indicating the position is in between 481 @return flag indicating the position is in between
482 @rtype bool 482 @rtype bool
483 """ 483 """
484 for posLeft, posRight in pairs: 484 return any(posLeft < posChar < posRight
485 if posLeft < posChar < posRight: 485 for (posLeft, posRight) in pairs)
486 return True
487
488 return False
489 486
490 def __findQuotePosition(self, text): 487 def __findQuotePosition(self, text):
491 """ 488 """
492 Private method to find the start and end position of pairs of quotes. 489 Private method to find the start and end position of pairs of quotes.
493 490

eric ide

mercurial