1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
github.com_openSUSE_osc/osc/util
Michal Vyskocil 87d354e1a0 python3 compatibility: import proper modules
Some modules (httplib, StringIO, ...) were renamed in python3. This
patch try to import the proper symbols from python3 and then fallback to
python2 in a case ImportError will appear.

There is one exception, python 2.7 got the io module with StringIO, but
it allow unicode arguments only. Therefor the old module is poked before
new one.
2013-04-16 10:51:18 +02: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 python3 compatibility: import proper modules 2013-04-16 10:51:18 +02:00
archquery.py python3 compatibility: use relative imports 2013-04-16 10:51:18 +02:00
cpio.py python3 compatibility: except 2013-04-16 10:51:17 +02:00
debquery.py python3 compatibility: use relative imports 2013-04-16 10:51:18 +02:00
packagequery.py python3 compatibility: use relative imports 2013-04-16 10:51:18 +02:00
repodata.py fix whitespace 2010-02-28 02:30:13 +01:00
rpmquery.py python3 compatibility: use relative imports 2013-04-16 10:51:18 +02:00
safewriter.py python3 compatibility: except 2013-04-16 10:51:17 +02:00