[arch-projects] [pyalpm][PATCH] Strip comments that aren't at the start from pycman.config
Rémy Oudompheng
remyoudompheng at gmail.com
Wed Sep 18 21:42:24 EDT 2013
2013/9/18 Frostyfrog <frostyfrog2 at gmail.com>:
> diff -aur pyalpm-0.6.2/pycman/config.py mychanges/pycman/config.py
> --- pyalpm-0.6.2/pycman/config.py 2013-08-04 13:20:24.000000000 -0600
> +++ mychanges/pycman/config.py 2013-09-17 23:07:57.895283250 -0600
> @@ -94,6 +94,8 @@
> filestack.pop()
> continue
>
> + if line.find(' #') > 0:
> + line=line[:line.find(' #')].strip()
> line = line.strip()
> if len(line) == 0: continue
> if line[0] == '#':
>
I don't understand the purpose of this patch. Can you explain it?
Rémy.
More information about the arch-projects
mailing list