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] == '#':