prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Progress bar broken
  ![image](https://cloud.githubusercontent.com/assets/1882046/18741247/576de78c-80ae-11e6-8604-2af7117b9cdd.png)
  
  ```
  C:\Users\Korijn\dev\myproject>conda info
  Current conda install:
  
                 platform : win-64
            conda version : 4.2.7
         conda is private : False
        conda-env version : 4.2.7
      conda-build version : 2.0.1
           python version : 3.5.1.final.0
         requests version : 2.9.1
         root environment : C:\Users\Korijn\Miniconda3  (writable)
      default environment : C:\Users\Korijn\Miniconda3
         envs directories : C:\Users\Korijn\Miniconda3\envs
            package cache : C:\Users\Korijn\Miniconda3\pkgs
             channel URLs : https://repo.continuum.io/pkgs/free/win-64/
                            https://repo.continuum.io/pkgs/free/noarch/
                            https://repo.continuum.io/pkgs/pro/win-64/
                            https://repo.continuum.io/pkgs/pro/noarch/
                            https://repo.continuum.io/pkgs/msys2/win-64/
                            https://repo.continuum.io/pkgs/msys2/noarch/
              config file : C:\Users\Korijn\.condarc
             offline mode : False
  ```
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `conda/base/constants.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 """
  3 This file should hold almost all string literals and magic numbers used throughout the code base.
  4 The exception is if a literal is specifically meant to be private to and isolated within a module.
  5 """
  6 from __future__ import absolute_import, division, print_function
  7 
  8 import os
  9 import sys
  10 from logging import getLogger
  11 from platform import machine
  12 
  13 from enum import Enum
  14 
  15 from conda._vendor.auxlib.collection import frozendict
  16 
  17 log = getLogger(__name__)
  18 
  19 
  20 class Arch(Enum):
  21     x86 = 'x86'
  22     x86_64 = 'x86_64'
  23     armv6l = 'armv6l'
  24     armv7l = 'armv7l'
  25     ppc64le = 'ppc64le'
  26 
  27     @classmethod
  28     def from_sys(cls):
  29         return cls[machine()]
  30 
  31 
  32 class Platform(Enum):
  33     linux = 'linux'
  34     win = 'win32'
  35     openbsd = 'openbsd5'
  36     osx = 'darwin'
  37 
  38     @classmethod
  39     def from_sys(cls):
  40         p = sys.platform
  41         if p.startswith('linux'):
  42             # Changed in version 2.7.3: Since lots of code check for sys.platform == 'linux2',
  43             # and there is no essential change between Linux 2.x and 3.x, sys.platform is always
  44             # set to 'linux2', even on Linux 3.x. In Python 3.3 and later, the value will always
  45             # be set to 'linux'
  46             p = 'linux'
  47         return cls(p)
  48 
  49 machine_bits = 8 * tuple.__itemsize__
  50 
  51 # UID = os.getuid()
  52 PWD = os.getcwd()
  53 CONDA = 'CONDA'
  54 CONDA_ = 'CONDA_'
  55 conda = 'conda'
  56 
  57 SEARCH_PATH = (
  58     '/etc/conda/condarc',
  59     '/etc/conda/condarc.d/',
  60     '/var/lib/conda/condarc',
  61     '/var/lib/conda/condarc.d/',
  62     '$CONDA_ROOT/condarc',
  63     '$CONDA_ROOT/.condarc',
  64     '$CONDA_ROOT/condarc.d/',
  65     '~/.conda/condarc',
  66     '~/.conda/condarc.d/',
  67     '~/.condarc',
  68     '$CONDA_PREFIX/.condarc',
  69     '$CONDA_PREFIX/condarc.d/',
  70     '$CONDARC',
  71 )
  72 
  73 DEFAULT_CHANNEL_ALIAS = 'https://conda.anaconda.org/'
  74 
  75 PLATFORM_DIRECTORIES = ("linux-64",  "linux-32",
  76                         "win-64",  "win-32",
  77                         "osx-64", "noarch")
  78 
  79 RECOGNIZED_URL_SCHEMES = ('http', 'https', 'ftp', 's3', 'file')
  80 
  81 
  82 if Platform.from_sys() is Platform.win:
  83     DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',
  84                         'https://repo.continuum.io/pkgs/pro',
  85                         'https://repo.continuum.io/pkgs/msys2',
  86                         )
  87 else:
  88     DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',
  89                         'https://repo.continuum.io/pkgs/pro',
  90                         )
  91 
  92 ROOT_ENV_NAME = 'root'
  93 
  94 EMPTY_LIST = ()
  95 EMPTY_MAP = frozendict()
  96 
  97 
  98 class _Null(object):
  99     def __nonzero__(self):
  100         return False
  101 
  102 NULL = _Null()
  103 
  104 UTF8 = 'UTF-8'
  105
  ```
  --- 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/conda/base/constants.py b/conda/base/constants.py
  --- a/conda/base/constants.py
  +++ b/conda/base/constants.py
  @@ -99,6 +99,9 @@
       def __nonzero__(self):
           return False
   
  +    def __bool__(self):
  +        return False
  +
   NULL = _Null()
   
   UTF8 = 'UTF-8'
  
verification_info: {"golden_diff": "diff --git a/conda/base/constants.py b/conda/base/constants.py\n--- a/conda/base/constants.py\n+++ b/conda/base/constants.py\n@@ -99,6 +99,9 @@\n     def __nonzero__(self):\n         return False\n \n+    def __bool__(self):\n+        return False\n+\n NULL = _Null()\n \n UTF8 = 'UTF-8'\n", "issue": "Progress bar broken\n![image](https://cloud.githubusercontent.com/assets/1882046/18741247/576de78c-80ae-11e6-8604-2af7117b9cdd.png)\n\n```\nC:\\Users\\Korijn\\dev\\myproject>conda info\nCurrent conda install:\n\n               platform : win-64\n          conda version : 4.2.7\n       conda is private : False\n      conda-env version : 4.2.7\n    conda-build version : 2.0.1\n         python version : 3.5.1.final.0\n       requests version : 2.9.1\n       root environment : C:\\Users\\Korijn\\Miniconda3  (writable)\n    default environment : C:\\Users\\Korijn\\Miniconda3\n       envs directories : C:\\Users\\Korijn\\Miniconda3\\envs\n          package cache : C:\\Users\\Korijn\\Miniconda3\\pkgs\n           channel URLs : https://repo.continuum.io/pkgs/free/win-64/\n                          https://repo.continuum.io/pkgs/free/noarch/\n                          https://repo.continuum.io/pkgs/pro/win-64/\n                          https://repo.continuum.io/pkgs/pro/noarch/\n                          https://repo.continuum.io/pkgs/msys2/win-64/\n                          https://repo.continuum.io/pkgs/msys2/noarch/\n            config file : C:\\Users\\Korijn\\.condarc\n           offline mode : False\n```\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis file should hold almost all string literals and magic numbers used throughout the code base.\nThe exception is if a literal is specifically meant to be private to and isolated within a module.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nfrom logging import getLogger\nfrom platform import machine\n\nfrom enum import Enum\n\nfrom conda._vendor.auxlib.collection import frozendict\n\nlog = getLogger(__name__)\n\n\nclass Arch(Enum):\n    x86 = 'x86'\n    x86_64 = 'x86_64'\n    armv6l = 'armv6l'\n    armv7l = 'armv7l'\n    ppc64le = 'ppc64le'\n\n    @classmethod\n    def from_sys(cls):\n        return cls[machine()]\n\n\nclass Platform(Enum):\n    linux = 'linux'\n    win = 'win32'\n    openbsd = 'openbsd5'\n    osx = 'darwin'\n\n    @classmethod\n    def from_sys(cls):\n        p = sys.platform\n        if p.startswith('linux'):\n            # Changed in version 2.7.3: Since lots of code check for sys.platform == 'linux2',\n            # and there is no essential change between Linux 2.x and 3.x, sys.platform is always\n            # set to 'linux2', even on Linux 3.x. In Python 3.3 and later, the value will always\n            # be set to 'linux'\n            p = 'linux'\n        return cls(p)\n\nmachine_bits = 8 * tuple.__itemsize__\n\n# UID = os.getuid()\nPWD = os.getcwd()\nCONDA = 'CONDA'\nCONDA_ = 'CONDA_'\nconda = 'conda'\n\nSEARCH_PATH = (\n    '/etc/conda/condarc',\n    '/etc/conda/condarc.d/',\n    '/var/lib/conda/condarc',\n    '/var/lib/conda/condarc.d/',\n    '$CONDA_ROOT/condarc',\n    '$CONDA_ROOT/.condarc',\n    '$CONDA_ROOT/condarc.d/',\n    '~/.conda/condarc',\n    '~/.conda/condarc.d/',\n    '~/.condarc',\n    '$CONDA_PREFIX/.condarc',\n    '$CONDA_PREFIX/condarc.d/',\n    '$CONDARC',\n)\n\nDEFAULT_CHANNEL_ALIAS = 'https://conda.anaconda.org/'\n\nPLATFORM_DIRECTORIES = (\"linux-64\",  \"linux-32\",\n                        \"win-64\",  \"win-32\",\n                        \"osx-64\", \"noarch\")\n\nRECOGNIZED_URL_SCHEMES = ('http', 'https', 'ftp', 's3', 'file')\n\n\nif Platform.from_sys() is Platform.win:\n    DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',\n                        'https://repo.continuum.io/pkgs/pro',\n                        'https://repo.continuum.io/pkgs/msys2',\n                        )\nelse:\n    DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',\n                        'https://repo.continuum.io/pkgs/pro',\n                        )\n\nROOT_ENV_NAME = 'root'\n\nEMPTY_LIST = ()\nEMPTY_MAP = frozendict()\n\n\nclass _Null(object):\n    def __nonzero__(self):\n        return False\n\nNULL = _Null()\n\nUTF8 = 'UTF-8'\n", "path": "conda/base/constants.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"\nThis file should hold almost all string literals and magic numbers used throughout the code base.\nThe exception is if a literal is specifically meant to be private to and isolated within a module.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport sys\nfrom logging import getLogger\nfrom platform import machine\n\nfrom enum import Enum\n\nfrom conda._vendor.auxlib.collection import frozendict\n\nlog = getLogger(__name__)\n\n\nclass Arch(Enum):\n    x86 = 'x86'\n    x86_64 = 'x86_64'\n    armv6l = 'armv6l'\n    armv7l = 'armv7l'\n    ppc64le = 'ppc64le'\n\n    @classmethod\n    def from_sys(cls):\n        return cls[machine()]\n\n\nclass Platform(Enum):\n    linux = 'linux'\n    win = 'win32'\n    openbsd = 'openbsd5'\n    osx = 'darwin'\n\n    @classmethod\n    def from_sys(cls):\n        p = sys.platform\n        if p.startswith('linux'):\n            # Changed in version 2.7.3: Since lots of code check for sys.platform == 'linux2',\n            # and there is no essential change between Linux 2.x and 3.x, sys.platform is always\n            # set to 'linux2', even on Linux 3.x. In Python 3.3 and later, the value will always\n            # be set to 'linux'\n            p = 'linux'\n        return cls(p)\n\nmachine_bits = 8 * tuple.__itemsize__\n\n# UID = os.getuid()\nPWD = os.getcwd()\nCONDA = 'CONDA'\nCONDA_ = 'CONDA_'\nconda = 'conda'\n\nSEARCH_PATH = (\n    '/etc/conda/condarc',\n    '/etc/conda/condarc.d/',\n    '/var/lib/conda/condarc',\n    '/var/lib/conda/condarc.d/',\n    '$CONDA_ROOT/condarc',\n    '$CONDA_ROOT/.condarc',\n    '$CONDA_ROOT/condarc.d/',\n    '~/.conda/condarc',\n    '~/.conda/condarc.d/',\n    '~/.condarc',\n    '$CONDA_PREFIX/.condarc',\n    '$CONDA_PREFIX/condarc.d/',\n    '$CONDARC',\n)\n\nDEFAULT_CHANNEL_ALIAS = 'https://conda.anaconda.org/'\n\nPLATFORM_DIRECTORIES = (\"linux-64\",  \"linux-32\",\n                        \"win-64\",  \"win-32\",\n                        \"osx-64\", \"noarch\")\n\nRECOGNIZED_URL_SCHEMES = ('http', 'https', 'ftp', 's3', 'file')\n\n\nif Platform.from_sys() is Platform.win:\n    DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',\n                        'https://repo.continuum.io/pkgs/pro',\n                        'https://repo.continuum.io/pkgs/msys2',\n                        )\nelse:\n    DEFAULT_CHANNELS = ('https://repo.continuum.io/pkgs/free',\n                        'https://repo.continuum.io/pkgs/pro',\n                        )\n\nROOT_ENV_NAME = 'root'\n\nEMPTY_LIST = ()\nEMPTY_MAP = frozendict()\n\n\nclass _Null(object):\n    def __nonzero__(self):\n        return False\n\n    def __bool__(self):\n        return False\n\nNULL = _Null()\n\nUTF8 = 'UTF-8'\n", "path": "conda/base/constants.py"}]}