~ubuntu-branches/ubuntu/karmic/calibre/karmic

« back to all changes in this revision

Viewing changes to src/calibre/manual/custom.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-30 12:49:41 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730124941-qjdsmri25zt8zocn
Tags: 0.6.3+dfsg-0ubuntu1
* New upstream release. Please see http://calibre.kovidgoyal.net/new_in_6/
  for the list of new features and changes.
* remove_postinstall.patch: Update for new version.
* build_debug.patch: Does not apply any more, disable for now. Might not be
  necessary any more.
* debian/copyright: Fix reference to versionless GPL.
* debian/rules: Drop obsolete dh_desktop call.
* debian/rules: Add workaround for weird Python 2.6 setuptools behaviour of
  putting compiled .so files into src/calibre/plugins/calibre/plugins
  instead of src/calibre/plugins.
* debian/rules: Drop hal fdi moving, new upstream version does not use hal
  any more. Drop hal dependency, too.
* debian/rules: Install udev rules into /lib/udev/rules.d.
* Add debian/calibre.preinst: Remove unmodified
  /etc/udev/rules.d/95-calibre.rules on upgrade.
* debian/control: Bump Python dependencies to 2.6, since upstream needs
  it now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
__license__   = 'GPL v3'
5
5
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
6
6
import sys, os, inspect, re
7
 
from sphinx.builder import StandaloneHTMLBuilder, bold
 
7
from sphinx.builder import StandaloneHTMLBuilder
8
8
from sphinx.util import rpartition
9
 
from sphinx.ext.autodoc import get_module_charset, prepare_docstring
 
9
from sphinx.util.console import bold
 
10
from sphinx.ext.autodoc import prepare_docstring
10
11
from docutils.statemachine import ViewList
11
12
from docutils import nodes
12
13
 
181
182
    docstring = '\n'.join(comment_lines)
182
183
 
183
184
    if module is not None and docstring is not None:
184
 
        docstring = docstring.decode(get_module_charset(mod))
 
185
        docstring = docstring.decode('utf-8')
185
186
 
186
187
    result = ViewList()
187
188
    result.append('.. attribute:: %s.%s'%(cls.__name__, obj), '<autodoc>')