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

Commit d6067c18 authored by Tobias Thierer's avatar Tobias Thierer Committed by android-build-merger
Browse files

Merge "logtags: Support # line comments." am: cfd25567

am: 95370d66

Change-Id: I18db6c12656040db915c467987302f8f8abb5d4c
parents 033132ef 95370d66
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,9 +62,9 @@ class TagFile(object):
    try:
      for self.linenum, line in enumerate(file_object):
        self.linenum += 1

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

        if len(parts) < 2: