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 #1

Updated by Yannick Brosseau almost 11 years ago

Thanks, I'll review that soon.

Actions #2

Updated by Christian Babeux almost 11 years ago

  • Assignee set to Yannick Brosseau
Actions #3

Updated by Mathieu Desnoyers almost 11 years ago

  • Assignee changed from Yannick Brosseau to Mathieu Desnoyers
Actions #4

Updated by Zifei Tong almost 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF