Mercurial > genshi > mirror
annotate genshi/__init__.py @ 784:ea46fb523485 experimental-match-fastpaths
update to 0.5.x branch, up through r907
don't know how this fits in with SoC work, but I wanted to do due diligence and keep this branch working in case it someday gets considered for trunk
author | aflett |
---|---|
date | Mon, 21 Jul 2008 23:17:52 +0000 |
parents | 919809e55d16 |
children | e04c544a2c41 |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 # | |
784 | 3 # Copyright (C) 2006-2008 Edgewall Software |
1 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
230 | 8 # are also available at http://genshi.edgewall.org/wiki/License. |
1 | 9 # |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
230 | 12 # history and logs, available at http://genshi.edgewall.org/log/. |
1 | 13 |
14 """This package provides various means for generating and processing web markup | |
15 (XML or HTML). | |
16 | |
17 The design is centered around the concept of streams of markup events (similar | |
18 in concept to SAX parsing events) which can be processed in a uniform manner | |
19 independently of where or how they are produced. | |
20 """ | |
21 | |
425
073640758a42
Try to use proper reStructuredText for docstrings throughout.
cmlenz
parents:
424
diff
changeset
|
22 __docformat__ = 'restructuredtext en' |
424
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
23 try: |
784 | 24 from pkg_resources import get_distribution, ResolutionError |
25 try: | |
26 __version__ = get_distribution('Genshi').version | |
27 except ResolutionError: | |
28 __version__ = None # unknown | |
424
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
29 except ImportError: |
784 | 30 __version__ = None # unknown |
424
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
31 |
230 | 32 from genshi.core import * |
33 from genshi.input import ParseError, XML, HTML |