Re , William Kenworthy said: > olympus ~ # ceph > File "/usr/bin/ceph", line 192 > print '\n', s, '\n', '=' * len(s) > ^ > SyntaxError: invalid syntax > olympus ~ #
In Python 3 "print" is a function, and should be called like this: print('\n', s, '\n', '=' * len(s)) This works as-is in Python 2, unless you have this at the top of the file: from __future__ import print_function -- Keith -- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Dart <ke...@dartworks.biz> public key: ID: 19017044 <http://www.dartworks.biz/> =====================================================================