Branch: refs/heads/master
Home: https://github.com/openSUSE/osc
Commit: c5a235ed783ab1b5f7040b66034e5176ce76310d
https://github.com/openSUSE/osc/commit/c5a235ed783ab1b5f7040b66034e5176ce763...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/core.py
Log Message:
-----------
python3 compatibility:
python 2.6 does not have memoryview, so lets define it as buffer
Commit: d3648be24bd7dc5cfe1a7d7722d3312072f8e5c7
https://github.com/openSUSE/osc/commit/d3648be24bd7dc5cfe1a7d7722d3312072f8e...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/build.py
M osc/cmdln.py
M osc/commandline.py
M osc/core.py
M osc/fetch.py
M osc/util/cpio.py
Log Message:
-----------
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)
Commit: 3a93ac6d100e687c376104e1db4cb07e17bf7006
https://github.com/openSUSE/osc/commit/3a93ac6d100e687c376104e1db4cb07e17bf7...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/babysitter.py
M osc/build.py
M osc/checker.py
M osc/cmdln.py
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/fetch.py
M osc/oscssl.py
M osc/util/ar.py
M osc/util/archquery.py
M osc/util/cpio.py
M osc/util/debquery.py
M osc/util/packagequery.py
M osc/util/rpmquery.py
M osc/util/safewriter.py
Log Message:
-----------
python3 compatibility: except
changes 'except FooError, fe' to 'except FooError as fe'
available in python 2.6
Commit: 600a56542812703b6dfbf807e87b6161fafbc665
https://github.com/openSUSE/osc/commit/600a56542812703b6dfbf807e87b6161fafbc...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/commandline.py
Log Message:
-----------
python 3 compatibility: exec
exec is no longer a statement
Commit: a134074417485a2fcfb1590a79715c88635512d6
https://github.com/openSUSE/osc/commit/a134074417485a2fcfb1590a79715c8863551...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/cmdln.py
Log Message:
-----------
python3 compatibility: funcattrs, methodattrs
the introspection names changed a lot in python3, so lets have two
implementations used by respective runtime
Commit: 19f689ce0bf05d8855932fbe0529a665c35a8aa8
https://github.com/openSUSE/osc/commit/19f689ce0bf05d8855932fbe0529a665c35a8...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/commandline.py
Log Message:
-----------
python3 compatibility: getcwdu
used just on one place, seems to be enough to simply remove it
Commit: 2ad4a8c873677f78adef11b5e52b34f5052ac5a5
https://github.com/openSUSE/osc/commit/2ad4a8c873677f78adef11b5e52b34f5052ac...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/build.py
M osc/commandline.py
M osc/core.py
Log Message:
-----------
python3 compatibility: has_key
don't use method removed from python3
Commit: f814fe4af46e35d813d39aef0690bf0f5bb102d5
https://github.com/openSUSE/osc/commit/f814fe4af46e35d813d39aef0690bf0f5bb10...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/build.py
M osc/cmdln.py
M osc/core.py
Log Message:
-----------
python3 compatibility: idioms
more idiomatic code - changes
* type(foo) == bar to isinstance(foo, bar)
* changes the uneeded .sort calls by sorted()
Commit: c612e8d47ef20b70ba10508ac3e75714f7b1bacc
https://github.com/openSUSE/osc/commit/c612e8d47ef20b70ba10508ac3e75714f7b1b...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/babysitter.py
M osc/build.py
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/fetch.py
M osc/util/archquery.py
M osc/util/debquery.py
M osc/util/packagequery.py
M osc/util/rpmquery.py
Log Message:
-----------
python3 compatibility: use relative imports
Use relative imports when using module's own modules - this makes a
clear distinction between already developed copy and installed package.
Commit: 87d354e1a013806ef37f11e22f015e5cc43e533d
https://github.com/openSUSE/osc/commit/87d354e1a013806ef37f11e22f015e5cc43e5...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/OscConfigParser.py
M osc/babysitter.py
M osc/build.py
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/oscssl.py
M osc/util/ar.py
Log Message:
-----------
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.
Commit: 0dcbddbafed3833fccef87f5704f7afad333f403
https://github.com/openSUSE/osc/commit/0dcbddbafed3833fccef87f5704f7afad333f...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/fetch.py
Log Message:
-----------
python3 compatibility: new syntax for literals
The octal literals got a new syntax 0755 -> 0o755
Commit: 7f2031558ccdfbb407eb439c4076a477405afdab
https://github.com/openSUSE/osc/commit/7f2031558ccdfbb407eb439c4076a477405af...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/OscConfigParser.py
M osc/babysitter.py
M osc/build.py
M osc/checker.py
M osc/cmdln.py
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/fetch.py
M osc/meter.py
M osc/oscssl.py
M osc/util/ar.py
M osc/util/archquery.py
M osc/util/cpio.py
M osc/util/debquery.py
M osc/util/packagequery.py
M osc/util/rpmquery.py
Log Message:
-----------
python3 compatibility: print function
The most visible change in python3 - removal of print statement and all
the crufty
print >> sys.stderr, foo,
The from __future__ import print_function makes it available in python
2.6
Commit: b534ae0a6a1e98d137d24a326b0dcd367853727e
https://github.com/openSUSE/osc/commit/b534ae0a6a1e98d137d24a326b0dcd3678537...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/core.py
M osc/oscssl.py
Log Message:
-----------
python3 compatibility: raise
support for old style exceptions has been removed from python3
Commit: 5cc72902e068be15b1fadc53aa293084469cac43
https://github.com/openSUSE/osc/commit/5cc72902e068be15b1fadc53aa293084469ca...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/build.py
M osc/cmdln.py
M osc/core.py
M osc/oscssl.py
Log Message:
-----------
python3 compatibility: raw_input
raw_input has been removed and equals to input in py3. Unfortunatelly no
__future__ statement exists for that. Ensure all modules uses
osc.core.raw_input except osc.cmdln, where there is NameError way
implemented.
Commit: f6edc186c287956d6dc4c984c4e47ab1afec5fec
https://github.com/openSUSE/osc/commit/f6edc186c287956d6dc4c984c4e47ab1afec5...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/core.py
Log Message:
-----------
python3 compatibility: unicode
reintroduce unicode function - despite the fact I am pretty sure the
usage is plain wrong, because code says - return a unicode string from
utf-8 encoded one, which is probably not what was intended. I bet
something like encode the input as utf-8 was wanted.
Commit: 419367fca351335cf7f1ac20244d8384cd82a0e0
https://github.com/openSUSE/osc/commit/419367fca351335cf7f1ac20244d8384cd82a...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/babysitter.py
M osc/build.py
M osc/commandline.py
M osc/conf.py
M osc/core.py
M osc/fetch.py
M osc/oscssl.py
Log Message:
-----------
python3 compatibility: urllib
fixes all renames in urllib, urllib2, urlparse modules in python3
Commit: f0186dbde8ee37315daf17f28b92f3f8a52db1c8
https://github.com/openSUSE/osc/commit/f0186dbde8ee37315daf17f28b92f3f8a52db...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/commandline.py
M tests/common.py
M tests/test_prdiff.py
M tests/test_repairwc.py
M tests/test_setlinkrev.py
Log Message:
-----------
python3 compatibility: fix all tests
Commit: b787ca2b39bac4306e2d3b4dfee433397c2ca42a
https://github.com/openSUSE/osc/commit/b787ca2b39bac4306e2d3b4dfee433397c2ca...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/cmdln.py
M osc/commandline.py
M osc/core.py
M tests/common.py
Log Message:
-----------
python3 compatibility: make all unit test pass
There are many places can't be covered by 2to3, especially the
str/unicode -> str/bytes change done in python3. This is a big patch
incorporating all changes made in order to make python3 suite.py run
without any single failure.
It
* adapt the introspect_handler_3 for case there are no __defaults__
* adds the ET_ENCODING variable for ET.fromstring ("unicode" in py3,
"utf-8" in py2)
* (re)adds various builtins to both python versions
- memoryview to python 2.6
- bytes compatible with py3 to 2.6 and 2.7
and it changes few parts of tests/common.py in order to be compatible
with python3
* new urlcompare method compares all components or url + parsed query
string in a dictionary, so the ordering, neither quoting does not matter
* bytes builtin has been added to 2.x and used in assertEqualMultiline
Commit: f3b4acfd0a033b19173fd9f840f1f89ed62840ff
https://github.com/openSUSE/osc/commit/f3b4acfd0a033b19173fd9f840f1f89ed6284...
Author: Michal Vyskocil
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc-wrapper.py
Log Message:
-----------
python3 compatibility: fix osc-wrapper
the sys reload trick does not work in python 3 and it is not needed, so
let's remove that
Commit: ce04f8b9bb4f2c8b4a1f48bca5ef79d2f0e24b39
https://github.com/openSUSE/osc/commit/ce04f8b9bb4f2c8b4a1f48bca5ef79d2f0e24...
Author: Adrian Schröter
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M osc/commandline.py
Log Message:
-----------
- fix syntax to satisfy testsuite
Compare: https://github.com/openSUSE/osc/compare/b8faeeddb4f0...ce04f8b9bb4f