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

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

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

am: d6067c18

Change-Id: Iceb7ebf97ec183a18afd7e351a2e73061e5bc703
parents 4db9d233 d6067c18
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: