prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Launching navigator via prompt warnings appear
  _From @RidaZubair on May 24, 2017 9:47_
  
  **OS:** Windows
  **Anaconda: 4.4.0**
  
  **Actual:**
  On launching navigator via prompt following warning appears on prompt
  ![2](https://cloud.githubusercontent.com/assets/27444898/26396930/175ef622-408e-11e7-8e75-e9c2218e15de.png)
  
  
  
  _Copied from original issue: ContinuumIO/navigator#1189_
  
  --- 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/common/platform.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 from __future__ import absolute_import, division, print_function, unicode_literals
  3 
  4 from collections import OrderedDict
  5 from genericpath import exists
  6 from glob import glob
  7 from logging import getLogger
  8 import sys
  9 
  10 from .compat import iteritems, on_win
  11 from .._vendor.auxlib.decorators import memoize
  12 
  13 log = getLogger(__name__)
  14 
  15 
  16 def is_admin_on_windows():  # pragma: unix no cover
  17     # http://stackoverflow.com/a/1026626/2127762
  18     if not on_win:  # pragma: no cover
  19         return False
  20     try:
  21         from ctypes import windll
  22         return windll.shell32.IsUserAnAdmin()() != 0
  23     except ImportError as e:
  24         log.debug('%r', e)
  25         return 'unknown'
  26     except Exception as e:
  27         log.warn('%r', e)
  28         return 'unknown'
  29 
  30 
  31 @memoize
  32 def linux_get_libc_version():
  33     """
  34     If on linux, returns (libc_family, version), otherwise (None, None)
  35     """
  36 
  37     if not sys.platform.startswith('linux'):
  38         return None, None
  39 
  40     from os import confstr, confstr_names, readlink
  41 
  42     # Python 2.7 does not have either of these keys in confstr_names, so provide
  43     # hard-coded defaults and assert if the key is in confstr_names but differs.
  44     # These are defined by POSIX anyway so should never change.
  45     confstr_names_fallback = OrderedDict([('CS_GNU_LIBC_VERSION', 2),
  46                                           ('CS_GNU_LIBPTHREAD_VERSION', 3)])
  47 
  48     val = None
  49     for k, v in iteritems(confstr_names_fallback):
  50         assert k not in confstr_names or confstr_names[k] == v, (
  51             "confstr_names_fallback for %s is %s yet in confstr_names it is %s"
  52             "" % (k, confstr_names_fallback[k], confstr_names[k])
  53         )
  54         try:
  55             val = str(confstr(v))
  56         except:
  57             pass
  58         else:
  59             if val:
  60                 break
  61 
  62     if not val:
  63         # Weird, play it safe and assume glibc 2.5
  64         family, version = 'glibc', '2.5'
  65         log.warning("Failed to detect libc family and version, assuming %s/%s", family, version)
  66         return family, version
  67     family, version = val.split(' ')
  68 
  69     # NPTL is just the name of the threading library, even though the
  70     # version refers to that of uClibc. readlink() can help to try to
  71     # figure out a better name instead.
  72     if family == 'NPTL':
  73         clibs = glob('/lib/libc.so*')
  74         for clib in clibs:
  75             clib = readlink(clib)
  76             if exists(clib):
  77                 if clib.startswith('libuClibc'):
  78                     if version.startswith('0.'):
  79                         family = 'uClibc'
  80                     else:
  81                         family = 'uClibc-ng'
  82                     return family, version
  83         # This could be some other C library; it is unlikely though.
  84         family = 'uClibc'
  85         log.warning("Failed to detect non-glibc family, assuming %s (%s)", family, version)
  86         return family, version
  87     return family, version
  88
  ```
  --- 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/common/platform.py b/conda/common/platform.py
  --- a/conda/common/platform.py
  +++ b/conda/common/platform.py
  @@ -19,12 +19,12 @@
           return False
       try:
           from ctypes import windll
  -        return windll.shell32.IsUserAnAdmin()() != 0
  +        return windll.shell32.IsUserAnAdmin() != 0
       except ImportError as e:
           log.debug('%r', e)
           return 'unknown'
       except Exception as e:
  -        log.warn('%r', e)
  +        log.info('%r', e)
           return 'unknown'
  
verification_info: {"golden_diff": "diff --git a/conda/common/platform.py b/conda/common/platform.py\n--- a/conda/common/platform.py\n+++ b/conda/common/platform.py\n@@ -19,12 +19,12 @@\n         return False\n     try:\n         from ctypes import windll\n-        return windll.shell32.IsUserAnAdmin()() != 0\n+        return windll.shell32.IsUserAnAdmin() != 0\n     except ImportError as e:\n         log.debug('%r', e)\n         return 'unknown'\n     except Exception as e:\n-        log.warn('%r', e)\n+        log.info('%r', e)\n         return 'unknown'\n", "issue": "Launching navigator via prompt warnings appear\n_From @RidaZubair on May 24, 2017 9:47_\n\n**OS:** Windows\r\n**Anaconda: 4.4.0**\r\n\r\n**Actual:**\r\nOn launching navigator via prompt following warning appears on prompt\r\n![2](https://cloud.githubusercontent.com/assets/27444898/26396930/175ef622-408e-11e7-8e75-e9c2218e15de.png)\r\n\r\n\n\n_Copied from original issue: ContinuumIO/navigator#1189_\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nfrom genericpath import exists\nfrom glob import glob\nfrom logging import getLogger\nimport sys\n\nfrom .compat import iteritems, on_win\nfrom .._vendor.auxlib.decorators import memoize\n\nlog = getLogger(__name__)\n\n\ndef is_admin_on_windows():  # pragma: unix no cover\n    # http://stackoverflow.com/a/1026626/2127762\n    if not on_win:  # pragma: no cover\n        return False\n    try:\n        from ctypes import windll\n        return windll.shell32.IsUserAnAdmin()() != 0\n    except ImportError as e:\n        log.debug('%r', e)\n        return 'unknown'\n    except Exception as e:\n        log.warn('%r', e)\n        return 'unknown'\n\n\n@memoize\ndef linux_get_libc_version():\n    \"\"\"\n    If on linux, returns (libc_family, version), otherwise (None, None)\n    \"\"\"\n\n    if not sys.platform.startswith('linux'):\n        return None, None\n\n    from os import confstr, confstr_names, readlink\n\n    # Python 2.7 does not have either of these keys in confstr_names, so provide\n    # hard-coded defaults and assert if the key is in confstr_names but differs.\n    # These are defined by POSIX anyway so should never change.\n    confstr_names_fallback = OrderedDict([('CS_GNU_LIBC_VERSION', 2),\n                                          ('CS_GNU_LIBPTHREAD_VERSION', 3)])\n\n    val = None\n    for k, v in iteritems(confstr_names_fallback):\n        assert k not in confstr_names or confstr_names[k] == v, (\n            \"confstr_names_fallback for %s is %s yet in confstr_names it is %s\"\n            \"\" % (k, confstr_names_fallback[k], confstr_names[k])\n        )\n        try:\n            val = str(confstr(v))\n        except:\n            pass\n        else:\n            if val:\n                break\n\n    if not val:\n        # Weird, play it safe and assume glibc 2.5\n        family, version = 'glibc', '2.5'\n        log.warning(\"Failed to detect libc family and version, assuming %s/%s\", family, version)\n        return family, version\n    family, version = val.split(' ')\n\n    # NPTL is just the name of the threading library, even though the\n    # version refers to that of uClibc. readlink() can help to try to\n    # figure out a better name instead.\n    if family == 'NPTL':\n        clibs = glob('/lib/libc.so*')\n        for clib in clibs:\n            clib = readlink(clib)\n            if exists(clib):\n                if clib.startswith('libuClibc'):\n                    if version.startswith('0.'):\n                        family = 'uClibc'\n                    else:\n                        family = 'uClibc-ng'\n                    return family, version\n        # This could be some other C library; it is unlikely though.\n        family = 'uClibc'\n        log.warning(\"Failed to detect non-glibc family, assuming %s (%s)\", family, version)\n        return family, version\n    return family, version\n", "path": "conda/common/platform.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import OrderedDict\nfrom genericpath import exists\nfrom glob import glob\nfrom logging import getLogger\nimport sys\n\nfrom .compat import iteritems, on_win\nfrom .._vendor.auxlib.decorators import memoize\n\nlog = getLogger(__name__)\n\n\ndef is_admin_on_windows():  # pragma: unix no cover\n    # http://stackoverflow.com/a/1026626/2127762\n    if not on_win:  # pragma: no cover\n        return False\n    try:\n        from ctypes import windll\n        return windll.shell32.IsUserAnAdmin() != 0\n    except ImportError as e:\n        log.debug('%r', e)\n        return 'unknown'\n    except Exception as e:\n        log.info('%r', e)\n        return 'unknown'\n\n\n@memoize\ndef linux_get_libc_version():\n    \"\"\"\n    If on linux, returns (libc_family, version), otherwise (None, None)\n    \"\"\"\n\n    if not sys.platform.startswith('linux'):\n        return None, None\n\n    from os import confstr, confstr_names, readlink\n\n    # Python 2.7 does not have either of these keys in confstr_names, so provide\n    # hard-coded defaults and assert if the key is in confstr_names but differs.\n    # These are defined by POSIX anyway so should never change.\n    confstr_names_fallback = OrderedDict([('CS_GNU_LIBC_VERSION', 2),\n                                          ('CS_GNU_LIBPTHREAD_VERSION', 3)])\n\n    val = None\n    for k, v in iteritems(confstr_names_fallback):\n        assert k not in confstr_names or confstr_names[k] == v, (\n            \"confstr_names_fallback for %s is %s yet in confstr_names it is %s\"\n            \"\" % (k, confstr_names_fallback[k], confstr_names[k])\n        )\n        try:\n            val = str(confstr(v))\n        except:\n            pass\n        else:\n            if val:\n                break\n\n    if not val:\n        # Weird, play it safe and assume glibc 2.5\n        family, version = 'glibc', '2.5'\n        log.warning(\"Failed to detect libc family and version, assuming %s/%s\", family, version)\n        return family, version\n    family, version = val.split(' ')\n\n    # NPTL is just the name of the threading library, even though the\n    # version refers to that of uClibc. readlink() can help to try to\n    # figure out a better name instead.\n    if family == 'NPTL':\n        clibs = glob('/lib/libc.so*')\n        for clib in clibs:\n            clib = readlink(clib)\n            if exists(clib):\n                if clib.startswith('libuClibc'):\n                    if version.startswith('0.'):\n                        family = 'uClibc'\n                    else:\n                        family = 'uClibc-ng'\n                    return family, version\n        # This could be some other C library; it is unlikely though.\n        family = 'uClibc'\n        log.warning(\"Failed to detect non-glibc family, assuming %s (%s)\", family, version)\n        return family, version\n    return family, version\n", "path": "conda/common/platform.py"}]}