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
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
1 # -*- coding: utf-8 -*-
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
2 #
784
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
3 # Copyright (C) 2006-2008 Edgewall Software
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
4 # All rights reserved.
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
5 #
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
6 # This software is licensed as described in the file COPYING, which
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
7 # you should have received as part of this distribution. The terms
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 66
diff changeset
8 # are also available at http://genshi.edgewall.org/wiki/License.
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
9 #
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
10 # This software consists of voluntary contributions made by many
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
11 # individuals. For the exact contribution history, see the revision
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 66
diff changeset
12 # history and logs, available at http://genshi.edgewall.org/log/.
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
13
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
14 """This package provides various means for generating and processing web markup
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
15 (XML or HTML).
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
16
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
17 The design is centered around the concept of streams of markup events (similar
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
18 in concept to SAX parsing events) which can be processed in a uniform manner
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
19 independently of where or how they are produced.
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
20 """
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
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
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
24 from pkg_resources import get_distribution, ResolutionError
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
25 try:
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
26 __version__ = get_distribution('Genshi').version
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
27 except ResolutionError:
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
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
ea46fb523485 update to 0.5.x branch, up through r907
aflett
parents: 724
diff changeset
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
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 66
diff changeset
32 from genshi.core import *
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 66
diff changeset
33 from genshi.input import ParseError, XML, HTML
Copyright (C) 2012-2017 Edgewall Software