-
Committer:
Package Import Robot
-
Author(s):
Mathieu Trudel-Lapierre, Colin Watson, Mathieu Trudel-Lapierre
-
Date:
2012-07-04 10:38:04 UTC
-
Revision ID:
package-import@ubuntu.com-20120704103804-eg3iwev75gxjwyqq
Tags: 0.84
[ Colin Watson ]
* Port to Python 3:
- Use Python 3-style print functions.
- Use "except Exception as e" syntax rather than the old-style "except
Exception, e".
- Remove use of the string module, at least for Python 3;
string.maketrans is still needed in Python 2.
- Use list comprehensions rather than map.
- Import configparser rather than ConfigParser if available.
- Use Python 3 renamings of urllib, urllib2, and urlparse if available.
- Use new-style octal literals.
- Open subprocesses with universal_newlines=True when expecting to read
text from them. On Python 2, this only enables \r\n conversion and
the like, but on Python 3 this also causes subprocess-related file
objects to read str rather than bytes.
- Use dict.items() rather than bothering with Python 2/3 compatibility
for dict.iteritems().
- Avoid use of obsolete unittest methods.
- Use "key in dict" rather than "dict.has_key(key)".
- Tell Python to use absolute imports by default, and annotate cases
where we need relative imports.
- Use Python 3 renaming of Queue if available.
- Handle a few cases of the range builtin and dict methods being changed
to return iterators in Python 3.
- Remove unused dependency on python-gnupginterface.
* Fix a number of pyflakes warnings.
[ Mathieu Trudel-Lapierre ]
* More Python 3 porting work:
- Port software-properties-kde and software-properties-dbus.
- Fix tests.
* debian/control, debian/compat: switch to debhelper (>= 9)
* debian/control,
debian/python*-software-properties.*:
- Replace python-software-properties with python3-software-properties.
- Have software-properties-common Breaks/Replaces
python-software-properties now that it will ship add-apt-repository and
locale data.
* debian/control: add software-properties-common to software-properties-kde
Depends; since it's now the package that ships locale data.
* debian/software-properties-common.install: ship the add-apt-repository
binary and locale data as part of software-properties-common now instead of
the python package.
* debian/rules:
- Start using --with python3 instead of python2.
* debian/software-properties-*.install: only install the python3 versions of
the GUI application library files.