[Merge] lp:~jameinel/bzr/2.1.0b4-win32-fancy-rename-exception into lp:bzr
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Nov 20 05:12:21 GMT 2009
>>>>> "jam" == John Arbash Meinel <john at arbash-meinel.com> writes:
<snip/>
>> def create_file(self, content, file_name=None,
>> prefix='mytest', suffix='.tmp',
>> cleanup=True):
>> if file_name is None:
>> fileno, file_name = tempfile.mkstemp(suffix=suffix,
>> prefix=prefix)
>> f = os.fdopen(fileno, 'w+')
jam> ^- This is generally much clearer as:
jam> f = tempfile.TemporaryFile(suffix=suffix, prefix=prefix)
jam> At least, IMO.
Sure. But where did you get the file_name then ?
Vincent
More information about the bazaar
mailing list