def f(matchobj):
#print matchobj.group(0), matchobj.group(1), matchobj.group(2)
return '<graphic srccredit="Fix Me!" fileref="%s" />' %
matchobj.group(2)
f = INFILE.readlines() #inefficient! changing this in the future would be a
good idea...
You are using the same variable name twice.
This is probably the root cause of the problem.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail