Project

General

Profile

Actions

Bug #585

closed

lttng-gen-tp: add python3 support

Added by Zifei Tong almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
07/07/2013
Due date:
% Done:

100%

Estimated time:

Description

Compiling "lttng-ust/doc/examples/gen-tp" with python 3.3.2 generates the following error:

../../../tools/lttng-gen-tp -o sample_tracepoint.h sample_tracepoint.tp
  File "../../../tools/lttng-gen-tp", line 109
    except OSError, msg:
                  ^
SyntaxError: invalid syntax
make: *** [sample_tracepoint.h] Error 1

There is not much to do for supporting python3 while keeping python2 compatibility.

I've attached a patch tested with Python 2.7.5 and Python 3.3.2.


Files

Actions

Also available in: Atom PDF