also match on tabs in ini_file
This commit is contained in:
parent
d4cec5ccc1
commit
4a532fb60c
1 changed files with 4 additions and 4 deletions
|
@ -109,16 +109,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…
Reference in a new issue