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
This commit is contained in:
		
							parent
							
								
									073d5bf583
								
							
						
					
					
						commit
						582be35847
					
				
					 27 changed files with 33 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,5 +32,6 @@ def main():
 | 
			
		|||
    with open('supportedsites.html', 'w', encoding='utf-8') as sitesf:
 | 
			
		||||
        sitesf.write(template)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,5 +28,6 @@ def main():
 | 
			
		|||
    with io.open(outfile, 'w', encoding='utf-8') as outf:
 | 
			
		||||
        outf.write(out)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,5 +41,6 @@ def main():
 | 
			
		|||
    with io.open(outfile, 'w', encoding='utf-8') as outf:
 | 
			
		||||
        outf.write(out)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -74,5 +74,6 @@ def filter_options(readme):
 | 
			
		|||
 | 
			
		||||
    return ret
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    main()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue