No blank lines allowed after function docstring
44
45
46def download_file(url, target_path, num_threads=1):
47 """ 48 Download the file from the given `url` and store it at `target_path`.
49 Return a tuple x (url, bool, str).
50 x[0] contains the url.
No blank lines allowed after function docstring
92
93
94def download_file_parallel(url, target_path, num_threads=1):
95 """ 96 Download the file from the given `url` and store it at `target_path`.
97 Return a tuple x (url, bool, str).
98 x[0] contains the url.
No blank lines allowed after function docstring
198 return name, gender
199
200 def find_audio_file_for_segment(self, start, end, audio_files):
201 """202 Find the correct audio file for the segment.
203 Return index of matching audio file.
204 """
No blank lines allowed after function docstring
169 return audio_files
170
171 def get_reader_info(self, article_path):
172 """ Return info about the reader of the article. """173
174 meta_path = os.path.join(article_path, 'audiometa.txt')
175 with open(meta_path, 'r', encoding='utf-8') as f:
No blank lines allowed after function docstring
142 return article_paths
143
144 def get_audio_file_info(self, article_path):
145 """146 Return info about the audio files.
147 List of tuples with (path, offset).
148 """
Description
There shouldn't be any blank lines after the function docstring. Remove the blank lines to fix this issue.
Not preferred:
def example():
'''Bad docstring.'''
pass
Preferred:
def example():
'''Good docstring.'''
pass