summaryrefslogtreecommitdiff
path: root/gitlab/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: format everything blackrefactor/blackMax Wittig2019-05-161-2/+2
|
* Raise an exception on https redirects for PUT/POSTGauvain Pocentek2018-08-241-0/+20
| | | | | | | | | | | POST and PUT requests are modified by clients when redirections happen. A common problem with python-gitlab is a misconfiguration of the server URL: the http to https redirection breaks some requests. With this change python-gitlab should detect problematic redirections, and raise a proper exception instead of failing with a cryptic error. Closes #565
* update copyright yearsGauvain Pocentek2017-05-241-1/+1
|
* fix pep8 testGauvain Pocentek2016-08-111-0/+1
|
* Add copyright header to utils.pyGauvain Pocentek2016-08-111-0/+17
|
* Allow to stream the downloads when appropriateGauvain Pocentek2016-07-171-0/+15
Some API calls will download possibly large data, resulting in a high memory usage and out-of-memory errors. For these API calls use the requests streaming capabilities and download chunked data. The caller is responsible of providing a callable to actually store the data. The default callable just prints the data on stdout.