Forked from
Reproducible Builds / diffoscope
Source project has a limited visibility.
-
Jérémy Bobbio authored
This is the “red pill” commit where we jump from Python 2.7 to Python 3.3+: * She-bang now calls /usr/bin/python3. * debian/control file is updated to depends on python3-* packages. * py.test-3 is called instead of pytest to run the test suit. * We no longer need need to wrap sys.stdout as its output will be properly encoded depending on the system settings. * All “import __future__” statements are removed. * items() replaces viewitems() and keys() replaces viewkeys() when working on dicts. https://docs.python.org/3/whatsnew/3.0.html#views-and-iterators-instead-of-lists * We use the new metaclass syntax: https://www.python.org/dev/peps/pep-3115/ * Msgunfmt.CHARSET_RE will work on raw bytes, so we need to add the 'b' modifier to the regex string. * str() replaces unicode() and chr() replaces unichr(): all strings are unicode strings now. https://docs.python.org/3/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit * reduce() is no longer a built-in, so use functools.reduce() instead. * TarContainer.extract doesn't need to decode the returned path as all paths are now unicode strings. * We have to tweak the expected output when testing the RPM header conversion because repr() no longer include a trailing L anymore. https://docs.python.org/3/whatsnew/3.0.html#integers
Jérémy Bobbio authoredThis is the “red pill” commit where we jump from Python 2.7 to Python 3.3+: * She-bang now calls /usr/bin/python3. * debian/control file is updated to depends on python3-* packages. * py.test-3 is called instead of pytest to run the test suit. * We no longer need need to wrap sys.stdout as its output will be properly encoded depending on the system settings. * All “import __future__” statements are removed. * items() replaces viewitems() and keys() replaces viewkeys() when working on dicts. https://docs.python.org/3/whatsnew/3.0.html#views-and-iterators-instead-of-lists * We use the new metaclass syntax: https://www.python.org/dev/peps/pep-3115/ * Msgunfmt.CHARSET_RE will work on raw bytes, so we need to add the 'b' modifier to the regex string. * str() replaces unicode() and chr() replaces unichr(): all strings are unicode strings now. https://docs.python.org/3/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit * reduce() is no longer a built-in, so use functools.reduce() instead. * TarContainer.extract doesn't need to decode the returned path as all paths are now unicode strings. * We have to tweak the expected output when testing the RPM header conversion because repr() no longer include a trailing L anymore. https://docs.python.org/3/whatsnew/3.0.html#integers