MockFile write() raises TypeError when writing unicode strings on Python 2
MockFile write() raises TypeError when writing unicode strings on Python 2: a task in LegoFlow-SWE (Harbor dataset). t = MockFile('test') with t.open('w') as f: f.write(u'bar')
The task
t = MockFile('test') with t.open('w') as f: f.write(u'bar') ```
Part of Lego-X/LegoFlow-SWE.