b511be20ff
Always import at the toplevel
2022-09-12 13:45:19 +02:00
feb53212dd
Modernize code with pyupgrade
...
pyupgrade --keep-percent-format --py36-plus `find -name '*.py'`
2022-07-28 19:14:12 +02:00
229913a77f
Clean imports up, drop python 2 fallbacks
2022-07-28 13:17:43 +02:00
lethliel
a65606cbfe
fix broken URLError handling in OscMirrorGroup.urlgrab()
...
If urlgrab returns a URLError (for example if the Network is unreachable)
the for loop did not continue and the osc build aborts.
Now we also catch the URLError and try the next mirror and return False
correctly if no mirror could be reached. And then try to download it from
api
2018-11-06 13:29:17 +01:00
Marcus Huewe
ad1450a1f7
Remove superfluous error message
...
Printing something like "Error 404" might be a bit confusing for
the users.
2018-11-01 19:55:52 +01:00
lethliel
65b053abb3
replace urlgrabber to enable python3 compatibility
...
- new module grabber.py
* OscMirrorGroup to keep urlgrabber.mirrorgroup behavior
* OscFileGrabber moved here
- meter.py
* reworked to use progressbar module instead of progressbar
of urlgrabber and simplified the module.
- babysitter.py
* removed URLGrabErrorr
- build.py
* removed adding of url_local to urllist. (not needed anymore)
* removed URLGrabError
- commandline.py
* switched from urlgrabber.urlgrab to OscFileGrabber().urlgrab
- core.py
* reworked progressbar behavior
- fetch.py
* removed join_url (not needed anymore)
* moved OscFileGrabber to grabber.py
* removed failureReport (not needed anymore)
2018-10-19 09:31:37 +02:00