Return line string after removing commented portion and excess spaces.
(line)
| 52 | |
| 53 | |
| 54 | def preprocess(line): |
| 55 | """ |
| 56 | Return line string after removing commented portion and excess spaces. |
| 57 | """ |
| 58 | if "//" in line: |
| 59 | line = line[:line.index('//')] |
| 60 | line = line.strip() |
| 61 | return line |
| 62 | |
| 63 | |
| 64 | def parse_gomod(location): |