1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00
github.com_openSUSE_osc/osc/util
Michal Vyskocil d3648be24b python3 compatibility: dict
this patch
 1.) removes the iteritems/itervalues, which were dropped in py3
     items/values are used instead
 2.) add an extra list() in a cases the list-based access is needed
     (included appending, indexing and so)
 3.) changes a sorting idiom in few places
     instead of
     foo = dict.keys()
     foo.sort()
     for i in foo:

     there is a recommended

     for i in sorted(dict.keys()):
 4.) in one occassion it removes a if dict.has_key() by simpler
   dict.get(key, default)
2013-04-16 10:51:17 +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 - yet another fix for python24... 2009-11-06 21:38:29 +00:00
archquery.py support archlinux builds 2012-04-03 16:00:06 +02:00
cpio.py python3 compatibility: dict 2013-04-16 10:51:17 +02:00
debquery.py - util/debquery.py: workaround for python2.4's tarfile module 2010-12-04 12:11:34 +01:00
packagequery.py support archlinux builds 2012-04-03 16:00:06 +02:00
repodata.py fix whitespace 2010-02-28 02:30:13 +01:00
rpmquery.py - add "fname" attribute to util.PackageError class 2010-10-21 21:46:41 +02:00
safewriter.py - don't fail if terminal encoding doesn't support unicode (fixes #660445) 2011-02-11 02:45:13 +01:00