File: utils.py

package info (click to toggle)
auth0-python 4.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,280 kB
  • sloc: python: 8,933; makefile: 15; sh: 2
file content (11 lines) | stat: -rw-r--r-- 186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
def is_async_available() -> bool:
    try:
        import asyncio

        import aiohttp

        return True
    except ImportError:  # pragma: no cover
        pass

    return False