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

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

Merge "logtags: Support # line comments."

am: cfd25567

Change-Id: Iba4f020dffc58d2d928b4b435705140a0517f2ea
parents ef5fe838 cfd25567
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: