fix E221 multiple spaces before operator

This commit is contained in:
MarkusHackspacher 2018-03-18 00:47:54 +01:00
parent 41f893806a
commit 710d8735d4
5 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,5 @@
[pycodestyle]
count=1
select = W1, W2, W3, E11, E125, E129, E211, E222, E227, E262, E266, E271, E272, E3, E703, E711, E712, E713, E721, E9
select = W, E11, E125, E129, E211, E221, E222, E227, E262, E266, E271, E272, E3, E703, E711, E712, E713, E721, E9
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
max-line-length = 100

View File

@ -193,17 +193,17 @@ except MissingFile as mf:
setup(
name = 'gpodder',
version = metadata['version'],
description = metadata['tagline'],
license = metadata['license'],
url = metadata['url'],
name='gpodder',
version=metadata['version'],
description=metadata['tagline'],
license=metadata['license'],
url=metadata['url'],
author = author,
author_email = email,
author=author,
author_email=email,
package_dir = {'': 'src'},
packages = packages,
scripts = scripts,
data_files = data_files,
package_dir={'': 'src'},
packages=packages,
scripts=scripts,
data_files=data_files,
)

View File

@ -18,13 +18,13 @@
#
# This metadata block gets parsed by setup.py - use single quotes only
__tagline__ = 'Media aggregator and podcast client'
__author__ = 'Thomas Perl <thp@gpodder.org>'
__version__ = '3.10.1'
__date__ = '2018-02-19'
__tagline__ = 'Media aggregator and podcast client'
__author__ = 'Thomas Perl <thp@gpodder.org>'
__version__ = '3.10.1'
__date__ = '2018-02-19'
__copyright__ = '© 2005-2018 The gPodder Team'
__license__ = 'GNU General Public License, version 3 or later'
__url__ = 'http://gpodder.org/'
__license__ = 'GNU General Public License, version 3 or later'
__url__ = 'http://gpodder.org/'
__version_info__ = tuple(int(x) for x in __version__.split('.'))

View File

@ -295,7 +295,7 @@ class DownloadURLOpener(urllib.request.FancyURLopener):
blocknum = current_size//bs
if reporthook:
if "content-length" in headers:
size = int(headers['Content-Length']) + current_size
size = int(headers['Content-Length']) + current_size
reporthook(blocknum, bs, size)
while read < size or size == -1:
if size == -1:

View File

@ -127,7 +127,7 @@ def get_real_download_url(url, preferred_fmt_ids=None):
raise YouTubeError('fmt_url_map not found for video ID "%s"' % vid)
# Default to the highest fmt_id if we don't find a match below
_, url = fmt_id_url_map[0]
_, url = fmt_id_url_map[0]
formats_available = set(fmt_id for fmt_id, url in fmt_id_url_map)
fmt_id_url_map = dict(fmt_id_url_map)