Also catch `SyntaxError` from asyncio import
authorAnthony Sottile <asottile@umich.edu>
Mon, 11 Jun 2018 18:32:55 +0000 (11:32 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jun 2018 18:32:55 +0000 (11:32 -0700)
commitd5c719f860ac5a57a113bec6d18edaa85d1a2a34
treeb4ceb717ba4c3b0ec457aff1825825f9a067d6f7
parent218747d2239a53bd1d978b60a2540f71e8c36417
Also catch `SyntaxError` from asyncio import

Apparently, `asyncio` is installable in python 2 and an import can trigger this:

```bash
pip install asyncio cached-property
python -c 'import cached_property'
```

```python
$ python -c 'import cached_property'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/venv/lib/python2.7/site-packages/cached_property.py", line 12, in <module>
    import asyncio
  File "/private/tmp/venv/lib/python2.7/site-packages/asyncio/__init__.py", line 9, in <module>
    from . import selectors
  File "/private/tmp/venv/lib/python2.7/site-packages/asyncio/selectors.py", line 39
    "{!r}".format(fileobj)) from None
                               ^
SyntaxError: invalid syntax
```

Originally seen in https://github.com/pre-commit/pre-commit/issues/766
cached_property.py