Am 06.01.2014 22:38, schrieb Mike Frysinger:
> On Monday 06 January 2014 16:04:16 sebastianlut...@gmx.de wrote:
>> +                            f = open(layout_conf_path, "w") +               
>>                 f.write("masters =
>> test_repo\n") +                              f.close()
> 
> please use "with" in your code with open(layout_conf_path, 'w') as
> f: f.write('masters = test_repo\n') -mike
> 
Arfrever pointed this out on IRC and I already send a new version of
this patch that uses "with".

Reply via email to