Conditions | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
26 | def is_done(self, http_status: int, contents: str) -> bool: |
||
27 | # Expect "HTTP 206 Partial Content" response |
||
28 | if http_status == 206: |
||
29 | self.result = EncryptHeaderResult(contents) |
||
30 | self.success = True |
||
31 | return True |
||
32 | self.error = "HTTP {}".format(http_status) |
||
33 | self.success = False |
||
34 | return True |
||
35 |
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.