Don't use name "async" as variable name

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.2.5, 1.3.1, 2.0
    • Affects Version/s: None
    • Component/s: asyncio
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      async is a keyword at python 3.7.

      https://github.com/mongodb/motor/blob/adb8d123ec8b71c5446c66ae79cf296baee3b6f2/motor/frameworks/asyncio/__init__.py#L32

      `from asyncio import async as ensure_future`

      That will raise a SyntaxError.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              songww
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: