I think you mean something like the attached.

No, the original one tries to strip ' plus \n, and then strip another
', from a line like
 key = 'value'\n

I think you can do something like
 values[key] = val.strip()
 values[key].replace("'", '')

or, because this ugly part is translated from configure.m4, and the
whole key value business is used *only* for the next chk_fontenc, you
can remove it all, and replace it with things like:

 allvars = open('chkconfig.vars').read()
 if allvars.match('chk_fontenc = "yes"'):
   addToRC(....)
 else:
    addToRC(....)

The match part is only a demonstration of idea.

Bo

Reply via email to