| Conditions | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import http.client |
||
| 21 | def is_gh_raw_online(): |
||
| 22 | """ |
||
| 23 | Check if the raw content delivery from Github is online. |
||
| 24 | |||
| 25 | It is routed to 301 and Moved Permanently because per standard it is routed to github.com |
||
| 26 | because it natively only accepts real content paths. |
||
| 27 | |||
| 28 | We do not follow reroutes else it would be 200 OK on github.com but we already have another method to check for that |
||
| 29 | and Github.com is on a different service than the content delivery. |
||
| 30 | """ |
||
| 31 | return __is_online("raw.githubusercontent.com", "/", 301, "Moved Permanently") |
||
| 32 |
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.