[arch-projects] [pyalpm][PATCH] Strip comments that aren't at the start from pycman.config
Frostyfrog
frostyfrog2 at gmail.com
Wed Sep 18 01:16:50 EDT 2013
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] == '#':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20130917/87d5b70a/attachment.html>
More information about the arch-projects
mailing list