Skip to content

Conversation

SplitInfinity
Copy link

@SplitInfinity SplitInfinity commented Mar 26, 2020

Summary
asyncio.run is supported only after 3.7 and that too, provisionally so.
This commit replaces the use of asyncio.run in tools/clang_format.py
with an approximation that works in both 3.6 and 3.7.

Testing
Ran the script with both python3.6 and python3.7.

$ python3.6 tools/clang_format.py --diff
...
Some files not formatted correctly
$
$ python3.7 tools/clang_format.py --diff
...
Some files not formatted correctly
$

@SplitInfinity SplitInfinity requested review from ailzhang and suo March 26, 2020 21:30
@SplitInfinity SplitInfinity changed the title [tools] Replace asyncio.run with approximation supported in python 3.6 [clang-format] Replace asyncio.run with approximation supported in python 3.6 Mar 26, 2020
…thon 3.6

Summary:
`asyncio.run` is supported only after 3.7 and that too, provisionally so.
This commit replaces the use of `asyncio.run` in `tools/clang_format.py`
with an approximation that works in both 3.6 and 3.7.

Testing:
Ran the script with both `python3.6` and `python3.7`.
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dr-ci
Copy link

dr-ci bot commented Mar 26, 2020

💊 CircleCI build failures summary and remediations

As of commit e3fee85 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no CircleCI failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 1 time.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SplitInfinity has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@SplitInfinity merged this pull request in b0459fe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants