514 continue |
514 continue |
515 elif kind == tokenize.STRING: # first STRING should be docstring |
515 elif kind == tokenize.STRING: # first STRING should be docstring |
516 return DocStyleContext(value, line - 1, "docstring") |
516 return DocStyleContext(value, line - 1, "docstring") |
517 else: |
517 else: |
518 return None |
518 return None |
|
519 |
|
520 return None |
519 |
521 |
520 def __parseDocstring(self, context, what=''): |
522 def __parseDocstring(self, context, what=''): |
521 """ |
523 """ |
522 Private method to extract a docstring given `def` or `class` source. |
524 Private method to extract a docstring given `def` or `class` source. |
523 |
525 |
611 indent += 1 |
613 indent += 1 |
612 elif kind == tokenize.DEDENT: |
614 elif kind == tokenize.DEDENT: |
613 indent -= 1 |
615 indent -= 1 |
614 if indent == 0: |
616 if indent == 0: |
615 return kind, value, start, end, raw |
617 return kind, value, start, end, raw |
|
618 |
|
619 return None |
616 |
620 |
617 def __parseMethods(self): |
621 def __parseMethods(self): |
618 """ |
622 """ |
619 Private method to extract methods of all classes. |
623 Private method to extract methods of all classes. |
620 |
624 |