Removing inline comments.

This commit is contained in:
Joshua Harlow 2012-02-13 17:24:58 -08:00
parent 3e22341035
commit 6b1ff60ac1

View File

@ -170,6 +170,8 @@ def load_local_rc(fn):
if m:
key = m.group(1).strip()
value = m.group(2).strip()
#remove inline comment if any
value = value.split("#")[0].strip()
if len(key):
qmtch = QUOTED_PAT.match(value)
if qmtch: