| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
|
|
|||
| 2 | |||
| 3 | from . import tclresult |
||
| 4 | |||
| 5 | class TclRequest: |
||
| 6 | def __init__(self): |
||
| 7 | self.uri = "" |
||
| 8 | self.rawmode = False |
||
| 9 | self.response = None |
||
| 10 | self.result = None |
||
| 11 | self.error = None |
||
| 12 | self.success = False |
||
| 13 | |||
| 14 | def get_headers(self): |
||
| 15 | return {} |
||
| 16 | |||
| 17 | def get_params(self): |
||
| 18 | return {} |
||
| 19 | |||
| 20 | def is_done(self, http_status: int, contents: str): |
||
| 21 | """Checks if query is done or needs retry.""" |
||
| 22 | return False |
||
| 23 | |||
| 24 | def get_result(self) -> tclresult.TclResult: |
||
| 25 | """Returns Result object.""" |
||
| 26 | return self.result |
||
| 27 |
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.