I have the following:
with open("c:\xml1.txt","r") as f1, open('c:\somefile.txt','w') as f2:
this gives a syntax error:
with open("c:\xml1.txt","r") as f1, open('c:\somefile.txt','w') as f2: ^ SyntaxError: mismatched input ',' expecting COLON
I am using python netbeans plugin which depends on jython 2.5.1
I added:
from __future__ import with_statement
but that didn’t change anything.
Any tips on what to do?
thanks
source share