On 09 Nov 2015 16:05, Mike Frysinger wrote:
> +     with tempfile.NamedTemporaryFile(prefix='catalyst.conf.') as conf:
> +             # Set up a config file with paths to the local tree.
> +             conf.write(
> +                     ('sharedir=%(source_root)s\n'
> +                      'shdir=%(source_root)s/targets\n'
> +                      'envscript=%(source_root)s/etc/catalystrc\n'
> +                      % {'source_root': source_root}).encode('utf8')
> +             )
> +             conf.flush()

before anyone suggests using the buffering option when creating 
tempfile.NamedTemporaryFile, you should be aware that the arg
name & meaning changed between py2 & py3.  it's simpler to flush.
-mike

Attachment: signature.asc
Description: Digital signature

Reply via email to