also match on tabs in ini_file (fixes #106) (#4067)

also match on tabs in ini_file
reviewable/pr18780/r1
Lukas Grossar 8 years ago committed by Brian Coca
parent 0ee7b9896d
commit 49bf8de27c

@ -110,16 +110,16 @@ import os
def match_opt(option, line): def match_opt(option, line):
option = re.escape(option) option = re.escape(option)
return re.match('%s *=' % option, line) \ return re.match('%s( |\t)*=' % option, line) \
or re.match('# *%s *=' % option, line) \ or re.match('# *%s( |\t)*=' % option, line) \
or re.match('; *%s *=' % option, line) or re.match('; *%s( |\t)*=' % option, line)
# ============================================================== # ==============================================================
# match_active_opt # match_active_opt
def match_active_opt(option, line): def match_active_opt(option, line):
option = re.escape(option) option = re.escape(option)
return re.match('%s *=' % option, line) return re.match('%s( |\t)*=' % option, line)
# ============================================================== # ==============================================================
# do_ini # do_ini

Loading…
Cancel
Save