Exemplo n.º 1
0
 def count_docinfo_lines(self, content: StringList) -> int:
     if len(content) == 0:
         return 0
     else:
         for lineno, line in enumerate(content.data):
             if not docinfo_re.match(line):
                 break
         return lineno
Exemplo n.º 2
0
 def count_docinfo_lines(self, content):
     # type: (StringList) -> int
     if len(content) == 0:
         return 0
     else:
         for lineno, line in enumerate(content.data):
             if not docinfo_re.match(line):
                 break
         return lineno