try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    from pkgutil import extend_path
    __path__ = extend_path(__path__, __name__)

import pkg_resources

pkg_resources.declare_namespace(__name__)

Fix pkg resources declare namespace
Fix pkg resources declare namespace

+ import pkg_resources
- try:
-     __import__('pkg_resources').declare_namespace(__name__)
- except ImportError:
-     from pkgutil import extend_path
-     __path__ = extend_path(__path__, __name__)
  
+ pkg_resources.declare_namespace(__name__)
+ 
Fix pkg resources declare namespace
## Code Before:
try:
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    from pkgutil import extend_path
    __path__ = extend_path(__path__, __name__)

## Instruction:
Fix pkg resources declare namespace
## Code After:
import pkg_resources

pkg_resources.declare_namespace(__name__)
