

def NamedTemporaryFile23(*args, **kwargs):
    'Works exactly as a wrapper to tempfile.NamedTemporaryFile except that\n       in python2.x, it excludes the "encoding" parameter when provided.'
    if (sys.version_info[0] == 2):
        kwargs.pop('encoding', None)
    return NamedTemporaryFile(*args, **args)

dataset/ETHPy150Open machinalis/iepy/tests/factories.py NamedTemporaryFile23/VarMisuse@47/108 `kwargs`->`args`