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] [pycodestyle]
count=1 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 # https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
max-line-length = 100 max-line-length = 100

View File

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

View File

@ -18,13 +18,13 @@
# #
# This metadata block gets parsed by setup.py - use single quotes only # This metadata block gets parsed by setup.py - use single quotes only
__tagline__ = 'Media aggregator and podcast client' __tagline__ = 'Media aggregator and podcast client'
__author__ = 'Thomas Perl <thp@gpodder.org>' __author__ = 'Thomas Perl <thp@gpodder.org>'
__version__ = '3.10.1' __version__ = '3.10.1'
__date__ = '2018-02-19' __date__ = '2018-02-19'
__copyright__ = '© 2005-2018 The gPodder Team' __copyright__ = '© 2005-2018 The gPodder Team'
__license__ = 'GNU General Public License, version 3 or later' __license__ = 'GNU General Public License, version 3 or later'
__url__ = 'http://gpodder.org/' __url__ = 'http://gpodder.org/'
__version_info__ = tuple(int(x) for x in __version__.split('.')) __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 blocknum = current_size//bs
if reporthook: if reporthook:
if "content-length" in headers: if "content-length" in headers:
size = int(headers['Content-Length']) + current_size size = int(headers['Content-Length']) + current_size
reporthook(blocknum, bs, size) reporthook(blocknum, bs, size)
while read < size or size == -1: while read < size or size == -1:
if 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) 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 # 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) formats_available = set(fmt_id for fmt_id, url in fmt_id_url_map)
fmt_id_url_map = dict(fmt_id_url_map) fmt_id_url_map = dict(fmt_id_url_map)