mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
[Lint] Fix triple-quoted to use double-quotes not single
* according to pep8 triple-quotes should use double-quote.
This commit is contained in:
parent
9ebe30edfc
commit
579f56b0bf
2 changed files with 6 additions and 6 deletions
|
@ -890,7 +890,7 @@ class VersionSplit(object):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
def __init__(self, ver):
|
def __init__(self, ver):
|
||||||
version_re = re.compile(r'''
|
version_re = re.compile(r"""
|
||||||
^
|
^
|
||||||
(?P<version>\d+\.\d+) # minimum 'N.N'
|
(?P<version>\d+\.\d+) # minimum 'N.N'
|
||||||
(?P<extraversion>(?:\.\d+)*) # any number of extra '.N' segments
|
(?P<extraversion>(?:\.\d+)*) # any number of extra '.N' segments
|
||||||
|
@ -900,7 +900,7 @@ class VersionSplit(object):
|
||||||
(?P<prerelversion>\d+(?:\.\d+)*)
|
(?P<prerelversion>\d+(?:\.\d+)*)
|
||||||
)?
|
)?
|
||||||
(?P<postdev>(\.post(?P<post>\d+))?(\.dev(?P<dev>\d+))?)?
|
(?P<postdev>(\.post(?P<post>\d+))?(\.dev(?P<dev>\d+))?)?
|
||||||
$''', re.VERBOSE)
|
$""", re.VERBOSE)
|
||||||
|
|
||||||
# Check for PEP 386 compliant version
|
# Check for PEP 386 compliant version
|
||||||
match = re.search(version_re, ver)
|
match = re.search(version_re, ver)
|
||||||
|
@ -991,7 +991,7 @@ def create_localclient_account(append=False):
|
||||||
|
|
||||||
|
|
||||||
def set_env_variable(name, value):
|
def set_env_variable(name, value):
|
||||||
'''
|
"""
|
||||||
:param name: environment variable name
|
:param name: environment variable name
|
||||||
:param value: environment variable value
|
:param value: environment variable value
|
||||||
|
|
||||||
|
@ -1010,7 +1010,7 @@ def set_env_variable(name, value):
|
||||||
|
|
||||||
Basen on _putenv in TransUtils.py from sourceforge project gramps
|
Basen on _putenv in TransUtils.py from sourceforge project gramps
|
||||||
http://sourceforge.net/p/gramps/code/HEAD/tree/branches/maintenance/gramps32/src/TransUtils.py
|
http://sourceforge.net/p/gramps/code/HEAD/tree/branches/maintenance/gramps32/src/TransUtils.py
|
||||||
'''
|
"""
|
||||||
# Update Python's copy of the environment variables
|
# Update Python's copy of the environment variables
|
||||||
try:
|
try:
|
||||||
os.environ[name] = value
|
os.environ[name] = value
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -486,10 +486,10 @@ setup(
|
||||||
author='Andrew Resch, Damien Churchill',
|
author='Andrew Resch, Damien Churchill',
|
||||||
author_email='andrewresch@gmail.com, damoxc@gmail.com',
|
author_email='andrewresch@gmail.com, damoxc@gmail.com',
|
||||||
keywords='torrent bittorrent p2p fileshare filesharing',
|
keywords='torrent bittorrent p2p fileshare filesharing',
|
||||||
long_description='''Deluge is a BitTorrent client that utilizes a
|
long_description="""Deluge is a BitTorrent client that utilizes a
|
||||||
daemon/client model. There are various user interfaces available for
|
daemon/client model. There are various user interfaces available for
|
||||||
Deluge such as the GTK-UI, the Web-UI and a Console-UI. Deluge uses
|
Deluge such as the GTK-UI, the Web-UI and a Console-UI. Deluge uses
|
||||||
libtorrent in it's backend to handle the BitTorrent protocol.''',
|
libtorrent in it's backend to handle the BitTorrent protocol.""",
|
||||||
url='http://deluge-torrent.org',
|
url='http://deluge-torrent.org',
|
||||||
license='GPLv3',
|
license='GPLv3',
|
||||||
cmdclass=cmdclass,
|
cmdclass=cmdclass,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue