Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
Check for asyncio to avoid statistics backports
Browse files Browse the repository at this point in the history
The only asyncio backport I know of is trollius, and it doesn't ship a
Python package 'asyncio', it makes its backport available as 'trollius'.
  • Loading branch information
mgedmin committed Jul 11, 2019
1 parent 86593d7 commit 4d8aeae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/app/security/globalmodules.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@

<!-- The following package has been deprecated in Python 3.4.
Let's use a similar trick of detecting whether the package
"statistics" is available, as it was added in 3.4. -->
<module module="formatter" zcml:condition="not-installed statistics">
"asyncio" is available, as it was added in 3.4. -->
<module module="formatter" zcml:condition="not-installed asyncio">
<allow attributes="AS_IS AbstractFormatter AbstractWriter DumbWriter
NullFormatter NullWriter" />
</module>
Expand Down

0 comments on commit 4d8aeae

Please sign in to comment.