Skip to content
This repository has been archived by the owner on Feb 17, 2023. 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 147dd35 commit 00167e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGES
2.0.0a2 (unreleased)
--------------------

- Nothing changed yet.
- Standardize namespace __init__


2.0.0a1 (2013-03-03)
Expand Down
7 changes: 6 additions & 1 deletion src/z3c/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# this is a namespace package
__import__('pkg_resources').declare_namespace(__name__)
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

0 comments on commit 00167e2

Please sign in to comment.