prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [Bug] example of override fail in multirun
  This fails
  
  `python examples/tutorial/5_composition/my_app.py -m db=mysql,postgresql db.user=omry`
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  2 import codecs
  3 import distutils
  4 import os
  5 import re
  6 import shutil
  7 from os.path import join, exists, isdir
  8 
  9 from setuptools import setup, find_packages
  10 
  11 here = os.path.abspath(os.path.dirname(__file__))
  12 
  13 
  14 def read(*parts):
  15     with codecs.open(os.path.join(here, *parts), "r") as fp:
  16         return fp.read()
  17 
  18 
  19 def find_version(*file_paths):
  20     version_file = read(*file_paths)
  21     version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
  22     if version_match:
  23         return version_match.group(1)
  24     raise RuntimeError("Unable to find version string.")
  25 
  26 
  27 class CleanCommand(distutils.cmd.Command):
  28     """
  29     Our custom command to clean out junk files.
  30     """
  31 
  32     description = "Cleans out junk files we don't want in the repo"
  33     user_options = []
  34 
  35     def initialize_options(self):
  36         pass
  37 
  38     def finalize_options(self):
  39         pass
  40 
  41     @staticmethod
  42     def find(root, includes, excludes=[]):
  43         res = []
  44         for parent, dirs, files in os.walk(root):
  45             for f in dirs + files:
  46                 add = list()
  47                 for include in includes:
  48                     if re.findall(include, f):
  49                         add.append(join(parent, f))
  50                 res.extend(add)
  51         final_list = []
  52         # Exclude things that matches an exclude pattern
  53         for ex in excludes:
  54             for file in res:
  55                 if not re.findall(ex, file):
  56                     final_list.append(file)
  57         return final_list
  58 
  59     def run(self):
  60         delete_patterns = [
  61             ".eggs",
  62             ".egg-info",
  63             ".pytest_cache",
  64             "build",
  65             "dist",
  66             "__pycache__",
  67             ".pyc",
  68         ]
  69         deletion_list = CleanCommand.find(
  70             ".", includes=delete_patterns, excludes=["\\.nox/.*"]
  71         )
  72 
  73         for f in deletion_list:
  74             if exists(f):
  75                 if isdir(f):
  76                     shutil.rmtree(f, ignore_errors=True)
  77                 else:
  78                     os.unlink(f)
  79 
  80 
  81 with open("README.md", "r") as fh:
  82     LONG_DESC = fh.read()
  83     setup(
  84         cmdclass={"clean": CleanCommand},
  85         name="hydra-core",
  86         version=find_version("hydra", "__init__.py"),
  87         author="Omry Yadan",
  88         author_email="omry@fb.com",
  89         description="Hydra is a library for writing flexible command line applications",
  90         long_description=LONG_DESC,
  91         long_description_content_type="text/markdown",
  92         url="https://github.com/facebookresearch/hydra",
  93         keywords="command-line configuration yaml tab-completion",
  94         packages=find_packages(),
  95         include_package_data=True,
  96         classifiers=[
  97             "License :: OSI Approved :: MIT License",
  98             "Development Status :: 4 - Beta",
  99             "Programming Language :: Python :: 2.7",
  100             "Programming Language :: Python :: 3.6",
  101             "Programming Language :: Python :: 3.7",
  102             "Operating System :: POSIX :: Linux",
  103             "Operating System :: MacOS",
  104             "Operating System :: Microsoft :: Windows",
  105         ],
  106         install_requires=[
  107             "omegaconf>=1.4.0rc2",
  108             'pathlib2>=2.2.0;python_version<"3.0"',
  109         ],
  110         # Install development dependencies with
  111         # pip install -e .[dev]
  112         extras_require={
  113             "dev": [
  114                 "black",
  115                 "coverage",
  116                 "flake8",
  117                 "flake8-copyright",
  118                 "nox",
  119                 "pre-commit",
  120                 "pytest",
  121                 "setuptools",
  122                 "towncrier",
  123                 "twine",
  124             ]
  125         },
  126     )
  127
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -104,7 +104,7 @@
               "Operating System :: Microsoft :: Windows",
           ],
           install_requires=[
  -            "omegaconf>=1.4.0rc2",
  +            "omegaconf>=1.4.0rc3",
               'pathlib2>=2.2.0;python_version<"3.0"',
           ],
           # Install development dependencies with
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -104,7 +104,7 @@\n             \"Operating System :: Microsoft :: Windows\",\n         ],\n         install_requires=[\n-            \"omegaconf>=1.4.0rc2\",\n+            \"omegaconf>=1.4.0rc3\",\n             'pathlib2>=2.2.0;python_version<\"3.0\"',\n         ],\n         # Install development dependencies with\n", "issue": "[Bug] example of override fail in multirun\nThis fails\r\n\r\n`python examples/tutorial/5_composition/my_app.py -m db=mysql,postgresql db.user=omry`\n", "before_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport codecs\nimport distutils\nimport os\nimport re\nimport shutil\nfrom os.path import join, exists, isdir\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    with codecs.open(os.path.join(here, *parts), \"r\") as fp:\n        return fp.read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\nclass CleanCommand(distutils.cmd.Command):\n    \"\"\"\n    Our custom command to clean out junk files.\n    \"\"\"\n\n    description = \"Cleans out junk files we don't want in the repo\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    @staticmethod\n    def find(root, includes, excludes=[]):\n        res = []\n        for parent, dirs, files in os.walk(root):\n            for f in dirs + files:\n                add = list()\n                for include in includes:\n                    if re.findall(include, f):\n                        add.append(join(parent, f))\n                res.extend(add)\n        final_list = []\n        # Exclude things that matches an exclude pattern\n        for ex in excludes:\n            for file in res:\n                if not re.findall(ex, file):\n                    final_list.append(file)\n        return final_list\n\n    def run(self):\n        delete_patterns = [\n            \".eggs\",\n            \".egg-info\",\n            \".pytest_cache\",\n            \"build\",\n            \"dist\",\n            \"__pycache__\",\n            \".pyc\",\n        ]\n        deletion_list = CleanCommand.find(\n            \".\", includes=delete_patterns, excludes=[\"\\\\.nox/.*\"]\n        )\n\n        for f in deletion_list:\n            if exists(f):\n                if isdir(f):\n                    shutil.rmtree(f, ignore_errors=True)\n                else:\n                    os.unlink(f)\n\n\nwith open(\"README.md\", \"r\") as fh:\n    LONG_DESC = fh.read()\n    setup(\n        cmdclass={\"clean\": CleanCommand},\n        name=\"hydra-core\",\n        version=find_version(\"hydra\", \"__init__.py\"),\n        author=\"Omry Yadan\",\n        author_email=\"omry@fb.com\",\n        description=\"Hydra is a library for writing flexible command line applications\",\n        long_description=LONG_DESC,\n        long_description_content_type=\"text/markdown\",\n        url=\"https://github.com/facebookresearch/hydra\",\n        keywords=\"command-line configuration yaml tab-completion\",\n        packages=find_packages(),\n        include_package_data=True,\n        classifiers=[\n            \"License :: OSI Approved :: MIT License\",\n            \"Development Status :: 4 - Beta\",\n            \"Programming Language :: Python :: 2.7\",\n            \"Programming Language :: Python :: 3.6\",\n            \"Programming Language :: Python :: 3.7\",\n            \"Operating System :: POSIX :: Linux\",\n            \"Operating System :: MacOS\",\n            \"Operating System :: Microsoft :: Windows\",\n        ],\n        install_requires=[\n            \"omegaconf>=1.4.0rc2\",\n            'pathlib2>=2.2.0;python_version<\"3.0\"',\n        ],\n        # Install development dependencies with\n        # pip install -e .[dev]\n        extras_require={\n            \"dev\": [\n                \"black\",\n                \"coverage\",\n                \"flake8\",\n                \"flake8-copyright\",\n                \"nox\",\n                \"pre-commit\",\n                \"pytest\",\n                \"setuptools\",\n                \"towncrier\",\n                \"twine\",\n            ]\n        },\n    )\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport codecs\nimport distutils\nimport os\nimport re\nimport shutil\nfrom os.path import join, exists, isdir\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    with codecs.open(os.path.join(here, *parts), \"r\") as fp:\n        return fp.read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\nclass CleanCommand(distutils.cmd.Command):\n    \"\"\"\n    Our custom command to clean out junk files.\n    \"\"\"\n\n    description = \"Cleans out junk files we don't want in the repo\"\n    user_options = []\n\n    def initialize_options(self):\n        pass\n\n    def finalize_options(self):\n        pass\n\n    @staticmethod\n    def find(root, includes, excludes=[]):\n        res = []\n        for parent, dirs, files in os.walk(root):\n            for f in dirs + files:\n                add = list()\n                for include in includes:\n                    if re.findall(include, f):\n                        add.append(join(parent, f))\n                res.extend(add)\n        final_list = []\n        # Exclude things that matches an exclude pattern\n        for ex in excludes:\n            for file in res:\n                if not re.findall(ex, file):\n                    final_list.append(file)\n        return final_list\n\n    def run(self):\n        delete_patterns = [\n            \".eggs\",\n            \".egg-info\",\n            \".pytest_cache\",\n            \"build\",\n            \"dist\",\n            \"__pycache__\",\n            \".pyc\",\n        ]\n        deletion_list = CleanCommand.find(\n            \".\", includes=delete_patterns, excludes=[\"\\\\.nox/.*\"]\n        )\n\n        for f in deletion_list:\n            if exists(f):\n                if isdir(f):\n                    shutil.rmtree(f, ignore_errors=True)\n                else:\n                    os.unlink(f)\n\n\nwith open(\"README.md\", \"r\") as fh:\n    LONG_DESC = fh.read()\n    setup(\n        cmdclass={\"clean\": CleanCommand},\n        name=\"hydra-core\",\n        version=find_version(\"hydra\", \"__init__.py\"),\n        author=\"Omry Yadan\",\n        author_email=\"omry@fb.com\",\n        description=\"Hydra is a library for writing flexible command line applications\",\n        long_description=LONG_DESC,\n        long_description_content_type=\"text/markdown\",\n        url=\"https://github.com/facebookresearch/hydra\",\n        keywords=\"command-line configuration yaml tab-completion\",\n        packages=find_packages(),\n        include_package_data=True,\n        classifiers=[\n            \"License :: OSI Approved :: MIT License\",\n            \"Development Status :: 4 - Beta\",\n            \"Programming Language :: Python :: 2.7\",\n            \"Programming Language :: Python :: 3.6\",\n            \"Programming Language :: Python :: 3.7\",\n            \"Operating System :: POSIX :: Linux\",\n            \"Operating System :: MacOS\",\n            \"Operating System :: Microsoft :: Windows\",\n        ],\n        install_requires=[\n            \"omegaconf>=1.4.0rc3\",\n            'pathlib2>=2.2.0;python_version<\"3.0\"',\n        ],\n        # Install development dependencies with\n        # pip install -e .[dev]\n        extras_require={\n            \"dev\": [\n                \"black\",\n                \"coverage\",\n                \"flake8\",\n                \"flake8-copyright\",\n                \"nox\",\n                \"pre-commit\",\n                \"pytest\",\n                \"setuptools\",\n                \"towncrier\",\n                \"twine\",\n            ]\n        },\n    )\n", "path": "setup.py"}]}