Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfd25567 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "logtags: Support # line comments."

parents 9e0b4ed8 07f622b0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -62,9 +62,9 @@ class TagFile(object):
    try:
    try:
      for self.linenum, line in enumerate(file_object):
      for self.linenum, line in enumerate(file_object):
        self.linenum += 1
        self.linenum += 1

        line = re.sub('#.*$', '', line) # strip trailing comments
        line = line.strip()
        line = line.strip()
        if not line or line[0] == '#': continue
        if not line: continue
        parts = re.split(r"\s+", line, 2)
        parts = re.split(r"\s+", line, 2)


        if len(parts) < 2:
        if len(parts) < 2: