Skip to content

Commit

Permalink
Drop security declarations for binhex
Browse files Browse the repository at this point in the history
These cause

  .../lib/python3.9/site-packages/zope/configuration/config.py:226: DeprecationWarning: the binhex module is deprecated
    __import__(mname)

on Python 3.9
  • Loading branch information
mgedmin committed Oct 6, 2020
1 parent de3cc91 commit 3fe6401
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ CHANGES
5.0.1 (unreleased)
------------------

- Nothing changed yet.
- Drop security declarations for the deprecated ``binhex`` standard library
module from globalmodules.zcml.

Note that globalmodules.zcml should be avoided. It's better to make
declarations for only what you actually need to use.


5.0.0 (2019-07-12)
Expand Down
4 changes: 0 additions & 4 deletions src/zope/app/security/globalmodules.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,6 @@
Incomplete" />
</module>

<module module="binhex">
<allow attributes="binhex hexbin Error" />
</module>

<module module="quopri">
<allow attributes="decode encode decodestring encodestring" />
</module>
Expand Down

0 comments on commit 3fe6401

Please sign in to comment.