diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2016-11-03 21:26:46 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2016-11-03 21:45:45 +0000 |
commit | 3a2ff0c188b0e8da893b733cccb1e164b54f2471 (patch) | |
tree | 2997d64b20e6e280016792cd4a04bfd20ff89992 /docs/source/conf.py | |
parent | d4a8a38586251575a17c50735a10ddfba30fdc31 (diff) | |
download | deluge-3a2ff0c188b0e8da893b733cccb1e164b54f2471.tar.gz deluge-3a2ff0c188b0e8da893b733cccb1e164b54f2471.tar.bz2 deluge-3a2ff0c188b0e8da893b733cccb1e164b54f2471.zip |
[Lint] Convert all python double quotes to single quotes
* A rather disruptive change but for a few reasons such as easier to read,
easier type, keep consistent and javascript code uses single quotes.
* There are a few exceptions for the automated process:
* Any double quotes in comments
* Triple double quotes for docstrings
* Strings containing single quotes are left e.g. "they're"
* To deal with merge conflicts from feature branches it is best to follow
these steps for each commit:
* Create a patch: `git format-patch -1 <sha1>`
* Edit the patch and replace double quotes with single except those in
comments or strings containing an unescaped apostrophe.
* Check the patch `git apply --check <patchfile>` and fix any remaining
issues if it outputs an error.
* Apply the patch `git am < <patchfile>`
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r-- | docs/source/conf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 2b9aae06f..7b133c67a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -23,8 +23,8 @@ except ImportError: get_version = None # Must add these for autodoc to import packages successully -__builtin__.__dict__["_"] = lambda x: x -__builtin__.__dict__["_n"] = lambda s, p, n: s if n == 1 else p +__builtin__.__dict__['_'] = lambda x: x +__builtin__.__dict__['_n'] = lambda s, p, n: s if n == 1 else p # If your extensions are in another directory, add it here. If the directory # is relative to the documentation root, use os.path.abspath to make it @@ -55,7 +55,7 @@ class Mock(object): MOCK_MODULES = ['deluge.ui.gtkui.gtkui', 'deluge._libtorrent', 'libtorrent', 'psyco', - 'pygtk', "gtk", "gobject", "gtk.gdk", "pango", "cairo", "pangocairo", "chardet"] + 'pygtk', 'gtk', 'gobject', 'gtk.gdk', 'pango', 'cairo', 'pangocairo', 'chardet'] for mod_name in MOCK_MODULES: sys.modules[mod_name] = Mock() @@ -89,7 +89,7 @@ copyright = '2008-%s, Deluge Team' % current_year if get_version: version = get_version(prefix='deluge-', suffix='.dev0') else: - version = pkg_resources.require("Deluge")[0].version + version = pkg_resources.require('Deluge')[0].version # The full version, including alpha/beta/rc tags. release = version |