prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  conda env create giving ImportError for yaml package
  `conda env create` suddenly started giving `"ImportError: No module named 'yaml'"` with latest miniconda on my TravisCI builbs: https://travis-ci.org/leouieda/website/builds/170917743
  
  I changed nothing significant in my code. Tried rebuilding previous passing builds and started getting the same error. 
  
  Is this something from a recent release?
  
  conda env create giving ImportError for yaml package
  `conda env create` suddenly started giving `"ImportError: No module named 'yaml'"` with latest miniconda on my TravisCI builbs: https://travis-ci.org/leouieda/website/builds/170917743
  
  I changed nothing significant in my code. Tried rebuilding previous passing builds and started getting the same error. 
  
  Is this something from a recent release?
  
  
  </issue>
  <code>
  [start of conda_env/yaml.py]
  1 """
  2 Wrapper around yaml to ensure that everything is ordered correctly.
  3 
  4 This is based on the answer at http://stackoverflow.com/a/16782282
  5 """
  6 from __future__ import absolute_import, print_function
  7 from collections import OrderedDict
  8 import yaml
  9 
  10 
  11 def represent_ordereddict(dumper, data):
  12     value = []
  13 
  14     for item_key, item_value in data.items():
  15         node_key = dumper.represent_data(item_key)
  16         node_value = dumper.represent_data(item_value)
  17 
  18         value.append((node_key, node_value))
  19 
  20     return yaml.nodes.MappingNode(u'tag:yaml.org,2002:map', value)
  21 
  22 yaml.add_representer(OrderedDict, represent_ordereddict)
  23 
  24 dump = yaml.dump
  25 load = yaml.load
  26 dict = OrderedDict
  27
  [end of conda_env/yaml.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/conda_env/yaml.py b/conda_env/yaml.py
  --- a/conda_env/yaml.py
  +++ b/conda_env/yaml.py
  @@ -5,7 +5,9 @@
   """
   from __future__ import absolute_import, print_function
   from collections import OrderedDict
  -import yaml
  +
  +from conda.common.yaml import get_yaml
  +yaml = get_yaml()
   
   
   def represent_ordereddict(dumper, data):
  
verification_info: {"golden_diff": "diff --git a/conda_env/yaml.py b/conda_env/yaml.py\n--- a/conda_env/yaml.py\n+++ b/conda_env/yaml.py\n@@ -5,7 +5,9 @@\n \"\"\"\n from __future__ import absolute_import, print_function\n from collections import OrderedDict\n-import yaml\n+\n+from conda.common.yaml import get_yaml\n+yaml = get_yaml()\n \n \n def represent_ordereddict(dumper, data):\n", "issue": "conda env create giving ImportError for yaml package\n`conda env create` suddenly started giving `\"ImportError: No module named 'yaml'\"` with latest miniconda on my TravisCI builbs: https://travis-ci.org/leouieda/website/builds/170917743\n\nI changed nothing significant in my code. Tried rebuilding previous passing builds and started getting the same error. \n\nIs this something from a recent release?\n\nconda env create giving ImportError for yaml package\n`conda env create` suddenly started giving `\"ImportError: No module named 'yaml'\"` with latest miniconda on my TravisCI builbs: https://travis-ci.org/leouieda/website/builds/170917743\n\nI changed nothing significant in my code. Tried rebuilding previous passing builds and started getting the same error. \n\nIs this something from a recent release?\n\n", "before_files": [{"content": "\"\"\"\nWrapper around yaml to ensure that everything is ordered correctly.\n\nThis is based on the answer at http://stackoverflow.com/a/16782282\n\"\"\"\nfrom __future__ import absolute_import, print_function\nfrom collections import OrderedDict\nimport yaml\n\n\ndef represent_ordereddict(dumper, data):\n    value = []\n\n    for item_key, item_value in data.items():\n        node_key = dumper.represent_data(item_key)\n        node_value = dumper.represent_data(item_value)\n\n        value.append((node_key, node_value))\n\n    return yaml.nodes.MappingNode(u'tag:yaml.org,2002:map', value)\n\nyaml.add_representer(OrderedDict, represent_ordereddict)\n\ndump = yaml.dump\nload = yaml.load\ndict = OrderedDict\n", "path": "conda_env/yaml.py"}]}