1 |
On 16/08/13 15:34, Keith Dart wrote: |
2 |
> Re , William Kenworthy said: |
3 |
>> olympus ~ # ceph |
4 |
>> File "/usr/bin/ceph", line 192 |
5 |
>> print '\n', s, '\n', '=' * len(s) |
6 |
>> ^ |
7 |
>> SyntaxError: invalid syntax |
8 |
>> olympus ~ # |
9 |
> |
10 |
> |
11 |
> In Python 3 "print" is a function, and should be called like this: |
12 |
> |
13 |
> print('\n', s, '\n', '=' * len(s)) |
14 |
> |
15 |
> This works as-is in Python 2, unless you have this at the top of the |
16 |
> file: |
17 |
> |
18 |
> from __future__ import print_function |
19 |
> |
20 |
> |
21 |
> -- Keith |
22 |
> |
23 |
> |
24 |
Thanks Keith, that was suggested on the ceph list but grepping doesnt |
25 |
show it in the source. With this version of ceph they have replaced the |
26 |
"ceph" binary with a python script so its quite different from the older |
27 |
version which works. They target mainly centos and ubuntu/debian so I |
28 |
will have to keep looking. |
29 |
|
30 |
BillK |