1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-28 10:46:15 +01:00
github.com_openSUSE_osc/osc/util
lethliel 4b29e1c543 add helper functions for python3 support
This functions are used in the whole code and are
mandatory for the python3 support to work. In python2
case nothing is touched.

* cmp_to_key:
  converts a cmp= into a key= function

* decode_list:
  decodes each element of a list. This is needed if
  we have a mixed list with strings and bytes.

* decode_it:
  Takes the input and checks if it is not a string.
  Then it uses chardet to get the encoding.
2018-11-08 09:55:07 +01:00
..
__init__.py - don't fail if terminal encoding doesn't support unicode (fixes #660445) 2011-02-11 02:45:13 +01:00
ar.py - util.ar: do not import StringIO from the cStringIO module 2013-04-22 09:24:48 +02:00
archquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
cpio.py Resolve PEP8 issue E231 2014-08-13 17:30:12 +02:00
debquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
helper.py add helper functions for python3 support 2018-11-08 09:55:07 +01:00
packagequery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
repodata.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
rpmquery.py improve error message if file is not a valid rpm 2018-10-09 10:16:27 +02:00
safewriter.py Fix and simplify util.safewriter.SafeWriter 2018-03-09 16:55:56 +01:00