diff options
| author | Frazer Clews <frazerleslieclews@gmail.com> | 2020-08-24 15:51:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 18:14:53 +0100 |
| commit | abc6f864b9c6fa9a47a218a8250e79dcfa367d4d (patch) | |
| tree | e4dfa762398e1b2a8ae019e0039417be3e85d99c /bitbake/lib/bb/fetch2/osc.py | |
| parent | ac3593f6ed8f2ffb0bb62df47220b598cc1781f6 (diff) | |
| download | poky-abc6f864b9c6fa9a47a218a8250e79dcfa367d4d.tar.gz | |
bitbake: lib: fix most undefined code picked up by pylint
Correctly import, and inherit functions, and variables.
Also fix some typos and remove some Python 2 code that isn't recognised.
(Bitbake rev: b0c807be5c2170c9481c1a04d4c11972135d7dc5)
Signed-off-by: Frazer Clews <frazerleslieclews@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/osc.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/osc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py index 8f091efd02..3a6cd29510 100644 --- a/bitbake/lib/bb/fetch2/osc.py +++ b/bitbake/lib/bb/fetch2/osc.py | |||
| @@ -8,12 +8,15 @@ Based on the svn "Fetch" implementation. | |||
| 8 | """ | 8 | """ |
| 9 | 9 | ||
| 10 | import logging | 10 | import logging |
| 11 | import os | ||
| 11 | import bb | 12 | import bb |
| 12 | from bb.fetch2 import FetchMethod | 13 | from bb.fetch2 import FetchMethod |
| 13 | from bb.fetch2 import FetchError | 14 | from bb.fetch2 import FetchError |
| 14 | from bb.fetch2 import MissingParameterError | 15 | from bb.fetch2 import MissingParameterError |
| 15 | from bb.fetch2 import runfetchcmd | 16 | from bb.fetch2 import runfetchcmd |
| 16 | 17 | ||
| 18 | logger = logging.getLogger(__name__) | ||
| 19 | |||
| 17 | class Osc(FetchMethod): | 20 | class Osc(FetchMethod): |
| 18 | """Class to fetch a module or modules from Opensuse build server | 21 | """Class to fetch a module or modules from Opensuse build server |
| 19 | repositories.""" | 22 | repositories.""" |
