Return a ``line`` cleaned from comments markers and space.
(line)
| 235 | |
| 236 | |
| 237 | def pre_process(line): |
| 238 | """ |
| 239 | Return a ``line`` cleaned from comments markers and space. |
| 240 | """ |
| 241 | if '#' in line: |
| 242 | line = line[:line.index('#')] |
| 243 | return line.strip() |
| 244 | |
| 245 | |
| 246 | def get_cleaned_string(string): |