1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-31 09:58:58 +01:00

3 Commits

Author SHA1 Message Date
lethliel
df755b9595 switched to central decode function
* util/helper.py
  - new decode_it function. Takes obj and checks if
    it is not a str. The it tries to guess the encoding
    based on the module chardet

* all other modules:
  - switched from var.decode('utf-8') to decode_it(var) if
    possible
2018-11-05 14:47:32 +01:00
lethliel
8f12e5b3ef add decode_list helper function to decode a list
with unknown elems. If a elem is not of type str
it gets decoded (we assume it is bytes then)
2018-03-21 15:09:03 +01:00
lethliel
d846a6cf1f support python 2.6 2018-03-08 15:19:11 +01:00