Skip to content

Commit

Permalink
Merge branch 'master' into zodbupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 4, 2018
2 parents c739146 + d66b328 commit 8453a67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ For changes before version 3.0, see ``HISTORY.rst``.

- Add support for Python 3.7.

- Remove duplicate guard against * imports. (#60)

4.0b4 (2018-04-16)
------------------

Expand Down
4 changes: 0 additions & 4 deletions src/AccessControl/ZopeGuards.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ def guarded_import(mname, globals=None, locals=None, fromlist=None,
level=import_default_level):
if fromlist is None:
fromlist = ()
if '*' in fromlist:
raise Unauthorized("'from %s import *' is not allowed")
if globals is None:
globals = {}
if locals is None:
Expand All @@ -406,8 +404,6 @@ def guarded_import(mname, globals=None, locals=None, fromlist=None,
module = load_module(None, None, mnameparts, validate, globals, locals)
if module is None:
raise Unauthorized("import of '%s' is unauthorized" % mname)
if fromlist is None:
fromlist = ()
for name in fromlist:
v = getattr(module, name, None)
if v is None:
Expand Down

0 comments on commit 8453a67

Please sign in to comment.