| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 54.55% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | #! /usr/bin/env python |
||
| 10 | 1 | class Downloader(object): |
|
| 11 | |||
| 12 | 1 | urls = [] |
|
| 13 | 1 | filenames = [] |
|
| 14 | |||
| 15 | 1 | @classmethod |
|
| 16 | def fill_subparser(cls, subparser): |
||
| 17 | subparser.set_defaults(urls=cls.urls, filenames=cls.filenames) |
||
| 18 | return default_downloader |
||
| 19 | |||
| 20 | 1 | @classmethod |
|
| 21 | 1 | def download(cls, directory=None): |
|
| 22 | if not directory: |
||
| 23 | directory = os.getcwd() |
||
| 24 | return default_downloader(directory, cls.urls, cls.filenames) |
||
| 25 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.