aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:42:56 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-11-17 19:45:42 +0800
commit582be3584761030bfbee13b0c6ea9e6ce2c8a790 (patch)
tree7de027866475514d227e4e776b63a5e8e06e7153 /devscripts
parent073d5bf583e8ff8ae71efca5fc6fae0743ac8961 (diff)
downloadyoutube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.zip
youtube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.tar.gz
youtube-dl-582be3584761030bfbee13b0c6ea9e6ce2c8a790.tar.bz2
Update coding style after pycodestyle 2.1.0
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
Diffstat (limited to 'devscripts')
-rwxr-xr-xdevscripts/bash-completion.py1
-rwxr-xr-xdevscripts/fish-completion.py1
-rw-r--r--devscripts/generate_aes_testdata.py1
-rwxr-xr-xdevscripts/gh-pages/update-sites.py1
-rwxr-xr-xdevscripts/make_contributing.py1
-rw-r--r--devscripts/make_lazy_extractors.py1
-rw-r--r--devscripts/make_supportedsites.py1
-rw-r--r--devscripts/prepare_manpage.py1
-rwxr-xr-xdevscripts/zsh-completion.py1
9 files changed, 9 insertions, 0 deletions
diff --git a/devscripts/bash-completion.py b/devscripts/bash-completion.py
index ce68f26..3d13913 100755
--- a/devscripts/bash-completion.py
+++ b/devscripts/bash-completion.py
@@ -25,5 +25,6 @@ def build_completion(opt_parser):
filled_template = template.replace("{{flags}}", " ".join(opts_flag))
f.write(filled_template)
+
parser = youtube_dl.parseOpts()[0]
build_completion(parser)
diff --git a/devscripts/fish-completion.py b/devscripts/fish-completion.py
index 41629d8..51d19dd 100755
--- a/devscripts/fish-completion.py
+++ b/devscripts/fish-completion.py
@@ -44,5 +44,6 @@ def build_completion(opt_parser):
with open(FISH_COMPLETION_FILE, 'w') as f:
f.write(filled_template)
+
parser = youtube_dl.parseOpts()[0]
build_completion(parser)
diff --git a/devscripts/generate_aes_testdata.py b/devscripts/generate_aes_testdata.py
index 2e389fc..e3df42c 100644
--- a/devscripts/generate_aes_testdata.py
+++ b/devscripts/generate_aes_testdata.py
@@ -23,6 +23,7 @@ def openssl_encode(algo, key, iv):
out, _ = prog.communicate(secret_msg)
return out
+
iv = key = [0x20, 0x15] + 14 * [0]
r = openssl_encode('aes-128-cbc', key, iv)
diff --git a/devscripts/gh-pages/update-sites.py b/devscripts/gh-pages/update-sites.py
index 503c137..531c93c 100755
--- a/devscripts/gh-pages/update-sites.py
+++ b/devscripts/gh-pages/update-sites.py
@@ -32,5 +32,6 @@ def main():
with open('supportedsites.html', 'w', encoding='utf-8') as sitesf:
sitesf.write(template)
+
if __name__ == '__main__':
main()
diff --git a/devscripts/make_contributing.py b/devscripts/make_contributing.py
index 5e454a4..226d1a5 100755
--- a/devscripts/make_contributing.py
+++ b/devscripts/make_contributing.py
@@ -28,5 +28,6 @@ def main():
with io.open(outfile, 'w', encoding='utf-8') as outf:
outf.write(out)
+
if __name__ == '__main__':
main()
diff --git a/devscripts/make_lazy_extractors.py b/devscripts/make_lazy_extractors.py
index 9a79c2b..19114d3 100644
--- a/devscripts/make_lazy_extractors.py
+++ b/devscripts/make_lazy_extractors.py
@@ -59,6 +59,7 @@ def build_lazy_ie(ie, name):
s += make_valid_template.format(valid_url=ie._make_valid_url())
return s
+
# find the correct sorting and add the required base classes so that sublcasses
# can be correctly created
classes = _ALL_CLASSES[:-1]
diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.py
index 8cb4a46..764795b 100644
--- a/devscripts/make_supportedsites.py
+++ b/devscripts/make_supportedsites.py
@@ -41,5 +41,6 @@ def main():
with io.open(outfile, 'w', encoding='utf-8') as outf:
outf.write(out)
+
if __name__ == '__main__':
main()
diff --git a/devscripts/prepare_manpage.py b/devscripts/prepare_manpage.py
index ce54873..f9fe63f 100644
--- a/devscripts/prepare_manpage.py
+++ b/devscripts/prepare_manpage.py
@@ -74,5 +74,6 @@ def filter_options(readme):
return ret
+
if __name__ == '__main__':
main()
diff --git a/devscripts/zsh-completion.py b/devscripts/zsh-completion.py
index 04728e8..60aaf76 100755
--- a/devscripts/zsh-completion.py
+++ b/devscripts/zsh-completion.py
@@ -44,5 +44,6 @@ def build_completion(opt_parser):
with open(ZSH_COMPLETION_FILE, "w") as f:
f.write(template)
+
parser = youtube_dl.parseOpts()[0]
build_completion(parser)