Mercurial > genshi > mirror
annotate genshi/__init__.py @ 719:4bc6741b2811 trunk
Fix copyright years.
author | cmlenz |
---|---|
date | Thu, 10 Apr 2008 19:47:27 +0000 |
parents | 073640758a42 |
children | f5d5afd2df2b |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 # | |
719 | 3 # Copyright (C) 2006-2007 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: |
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
24 __version__ = __import__('pkg_resources').get_distribution('Genshi').version |
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
25 except ImportError: |
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
26 pass |
11355f9db50c
Set the `__version__` property in `genshi.__init__`; only works with a setuptools install, though. Addresses #103.
cmlenz
parents:
336
diff
changeset
|
27 |
230 | 28 from genshi.core import * |
29 from genshi.input import ParseError, XML, HTML |