Skip to content

Commit

Permalink
Remove needless exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Sep 22, 2014
1 parent 14b5e68 commit f9cc519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/collective/__init__.py
@@ -1,6 +1 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)
7 changes: 1 addition & 6 deletions src/collective/js/__init__.py
@@ -1,6 +1 @@
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
__import__('pkg_resources').declare_namespace(__name__)

0 comments on commit f9cc519

Please sign in to comment.