Shorten namespace package boilerplate
svn path=/plone.formwidget.captcha/trunk/; revision=33495
This commit is contained in:
parent
23e4397e51
commit
e64cb1e6f5
|
@ -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__)
|
||||
|
|
|
@ -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__)
|
||||
|
|
Reference in New Issue