Regex Python Help

Skip Montanaro skip.montanaro at gmail.com
Tue Mar 24 14:23:46 EDT 2015


On Tue, Mar 24, 2015 at 1:13 PM, <gdotoli at gmail.com> wrote:

> SyntaxError: Missing parentheses in call to 'print'


It appears you are attempting to use a Python 2.x print statement with
Python 3.x Try changing the last line to

print(line.rstrip())

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150324/1e0082fc/attachment.html>


More information about the Python-list mailing list