- Notifications
You must be signed in to change notification settings - Fork673
Commite9a8289

Andrew Tergis
feat: allow cfg timeout to be overrided via kwargs
On startup, the `timeout` parameter is loaded from config and stored onthe base gitlab object instance. This instance parameter is used as thetimeout for all API requests (it's passed into the `session` object whenmaking HTTP calls).This change allows any API method to specify a `timeout` argument to`**kwargs` that will override the global timeout value. This wassomewhat needed / helpful for the `import_github` method.I have also updated the docs accordingly.1 parentaa4d41b commite9a8289
3 files changed
+32
-13
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
366 | 366 |
| |
367 | 367 |
| |
368 | 368 |
| |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + |
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
| 494 | + | |
| 495 | + | |
494 | 496 |
| |
495 | 497 |
| |
496 | 498 |
| |
|
Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4745 | 4745 |
| |
4746 | 4746 |
| |
4747 | 4747 |
| |
4748 |
| - | |
4749 |
| - | |
4750 |
| - | |
4751 |
| - | |
4752 |
| - | |
4753 |
| - | |
4754 |
| - | |
| 4748 | + | |
4755 | 4749 |
| |
4756 | 4750 |
| |
4757 | 4751 |
| |
| |||
4761 | 4755 |
| |
4762 | 4756 |
| |
4763 | 4757 |
| |
4764 |
| - | |
4765 |
| - | |
| 4758 | + | |
| 4759 | + | |
4766 | 4760 |
| |
4767 | 4761 |
| |
4768 | 4762 |
| |
4769 | 4763 |
| |
4770 | 4764 |
| |
4771 | 4765 |
| |
4772 |
| - | |
4773 | 4766 |
| |
4774 | 4767 |
| |
4775 | 4768 |
| |
| |||
4801 | 4794 |
| |
4802 | 4795 |
| |
4803 | 4796 |
| |
4804 |
| - | |
4805 |
| - | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
| 4803 | + | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
4806 | 4807 |
| |
4807 |
| - | |
4808 | 4808 |
| |
4809 | 4809 |
| |
4810 | 4810 |
| |
|
0 commit comments
Comments
(0)