From 579f56b0bfdd88389ff606e1a27dd20f7b36cbe6 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 4 Jun 2017 22:27:00 +0100 Subject: [PATCH] [Lint] Fix triple-quoted to use double-quotes not single * according to pep8 triple-quotes should use double-quote. --- deluge/common.py | 8 ++++---- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index 5d9b879d6..371c567e0 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -890,7 +890,7 @@ class VersionSplit(object): """ def __init__(self, ver): - version_re = re.compile(r''' + version_re = re.compile(r""" ^ (?P\d+\.\d+) # minimum 'N.N' (?P(?:\.\d+)*) # any number of extra '.N' segments @@ -900,7 +900,7 @@ class VersionSplit(object): (?P\d+(?:\.\d+)*) )? (?P(\.post(?P\d+))?(\.dev(?P\d+))?)? - $''', re.VERBOSE) + $""", re.VERBOSE) # Check for PEP 386 compliant version match = re.search(version_re, ver) @@ -991,7 +991,7 @@ def create_localclient_account(append=False): def set_env_variable(name, value): - ''' + """ :param name: environment variable name :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 http://sourceforge.net/p/gramps/code/HEAD/tree/branches/maintenance/gramps32/src/TransUtils.py - ''' + """ # Update Python's copy of the environment variables try: os.environ[name] = value diff --git a/setup.py b/setup.py index a07f822fc..37661736c 100755 --- a/setup.py +++ b/setup.py @@ -486,10 +486,10 @@ setup( author='Andrew Resch, Damien Churchill', author_email='andrewresch@gmail.com, damoxc@gmail.com', 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 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', license='GPLv3', cmdclass=cmdclass,