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

Commit

Permalink
Standardize namespace __init__, pylint burps otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Nov 4, 2015
1 parent de820e6 commit 3c7724e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ CHANGES
2.1.2 (unreleased)
------------------

- Standardize namespace __init__

- works with zope.app.securitypolicy 3.5.2


Expand Down
9 changes: 4 additions & 5 deletions src/z3c/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# this is a namespace package
try:
# Declare this a namespace package if pkg_resources is available.
import pkg_resources
pkg_resources.declare_namespace('z3c')
pkg_resources.declare_namespace(__name__)
except ImportError:
pass


import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

0 comments on commit 3c7724e

Please sign in to comment.