

def __enter__(self):
    self.swaggerfile = 'temp-swagger-sample.yaml'
    with salt.utils.fopen(self.swaggerfile, 'w') as f:
        self.write(yaml.dump(self.swaggerdict))
    return self.swaggerfile

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py TempSwaggerFile.__enter__/VarMisuse@34/50 `f`->`self`