from pureyaml import dump as dumps
from pureyaml import load as loads

__all__ = ['dumps', 'loads']

from __future__ import absolute_import

import functools

from yaml import dump, Dumper, load, Loader

dumps = functools.partial(dump, Dumper=Dumper)
loads = functools.partial(load, Loader=Loader)

__all__ = ['dumps', 'loads']

Use PyYAML as YAML's loader and dumper
Use PyYAML as YAML's loader and dumper

- from pureyaml import dump as dumps
- from pureyaml import load as loads
+ from __future__ import absolute_import
+ 
+ import functools
+ 
+ from yaml import dump, Dumper, load, Loader
+ 
+ dumps = functools.partial(dump, Dumper=Dumper)
+ loads = functools.partial(load, Loader=Loader)
  
  __all__ = ['dumps', 'loads']
  
Use PyYAML as YAML's loader and dumper
## Code Before:
from pureyaml import dump as dumps
from pureyaml import load as loads

__all__ = ['dumps', 'loads']

## Instruction:
Use PyYAML as YAML's loader and dumper
## Code After:
from __future__ import absolute_import

import functools

from yaml import dump, Dumper, load, Loader

dumps = functools.partial(dump, Dumper=Dumper)
loads = functools.partial(load, Loader=Loader)

__all__ = ['dumps', 'loads']
