mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 02:48:39 +00:00
[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>`
This commit is contained in:
parent
d4a8a38586
commit
3a2ff0c188
231 changed files with 8812 additions and 8812 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue