335
336
337def extract_tar(buffer: io.BytesIO, to_dir):
338 """Extract a tar/zip archive to dir.339 If the archive has only one top dir, it will be stripped.
340 """
341
173 )
174
175 def repo_license(self, tag):
176 """Get repo license."""177
178 response = self.get(
179 f"https://{self.hostname}/{self.repo}/-/raw/{tag}/LICENSE?ref_type=tags"
71 return self.formal_releases_by_tag.get(tag)
72
73 def find_gitlab_project_path(self, uri):
74 """ 75 Finds the GitLab project path from a given URL.
76
77 Args:
There shouldn't be any blank lines after the function docstring. Remove the blank lines to fix this issue.
def example():
'''Bad docstring.'''
pass
def example():
'''Good docstring.'''
pass