
__docformat__ = 'restructuredtext en'
try:
    from pkg_resources import get_distribution, ResolutionError
    try:
        __version__ = get_distribution('Genshi').version
    except ResolutionError:
        __version__ = None # unknown
except ImportError:
    __version__ = None # unknown

from genshi.core import *
from genshi.input import ParseError, XML, HTML


__docformat__ = 'restructuredtext en'
__version__ = '0.6'

from genshi.core import *
from genshi.input import ParseError, XML, HTML

Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.
Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.

  
  __docformat__ = 'restructuredtext en'
+ __version__ = '0.6'
- try:
-     from pkg_resources import get_distribution, ResolutionError
-     try:
-         __version__ = get_distribution('Genshi').version
-     except ResolutionError:
-         __version__ = None # unknown
- except ImportError:
-     __version__ = None # unknown
  
  from genshi.core import *
  from genshi.input import ParseError, XML, HTML
  
Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.
## Code Before:

__docformat__ = 'restructuredtext en'
try:
    from pkg_resources import get_distribution, ResolutionError
    try:
        __version__ = get_distribution('Genshi').version
    except ResolutionError:
        __version__ = None # unknown
except ImportError:
    __version__ = None # unknown

from genshi.core import *
from genshi.input import ParseError, XML, HTML

## Instruction:
Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.
## Code After:

__docformat__ = 'restructuredtext en'
__version__ = '0.6'

from genshi.core import *
from genshi.input import ParseError, XML, HTML
