Branko Čibej wrote on 2018-06-14:
> > sbox.simple_move('A', 'A2')
> > sbox.simple_move('A2/mu', 'A2/mu2')
> > - open(sbox.ospath('A2/mu2'), 'w').write('r2\n')
> > + with open(sbox.ospath('A2/mu2'), 'w') as f:
> > + f.write('r2\n')
>
> I thought we had some kind of utility function for all of these?
sbox.simple_append('A2/mu2', 'r2\n', truncate=True)
is used in many places (including the test that was failing), and is equivalent
except it uses mode 'wb' instead of 'w'. That difference is probably not
important in most tests.
- Julian