telepathy-glib: Make the code generation tools work under either Python 2 or 3

Simon McVittie smcv at kemper.freedesktop.org
Thu Jan 3 09:38:15 PST 2013


Module: telepathy-glib
Branch: master
Commit: f4634b2caf1f92f27a507207ff181d3a7927871f
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=f4634b2caf1f92f27a507207ff181d3a7927871f

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu Jan  3 12:33:09 2013 +0000

Make the code generation tools work under either Python 2 or 3

They have been verified to produce identical output in _gen.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56758
Signed-off-by: Simon McVittie <simon.mcvittie at collabora.co.uk>
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>

---

 tools/c-constants-gen.py            |   12 +++---
 tools/glib-client-gen.py            |   18 +++-------
 tools/glib-client-marshaller-gen.py |   20 ++++++------
 tools/glib-errors-check-gen.py      |   62 +++++++++++++++++-----------------
 tools/glib-errors-str-gen.py        |   14 ++------
 tools/glib-ginterface-gen.py        |   22 ++++--------
 tools/glib-gtypes-generator.py      |   14 ++++----
 tools/glib-interfaces-gen.py        |   14 ++++----
 tools/gobject-foo.py                |    2 +-
 tools/libglibcodegen.py             |    4 +-
 tools/libtpcodegen.py               |   22 ++++++++++++-
 tools/make-version-script.py        |   32 +++++++++---------
 tools/xincludator.py                |   13 ++++++--
 13 files changed, 129 insertions(+), 120 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-glib/diff/?id=f4634b2caf1f92f27a507207ff181d3a7927871f


More information about the telepathy-commits mailing list