gjhiggins/rdflib — Issue #176: SyntaxError in rdflib/plugins/serializers/nt.py with Python 2.4
Author: gjhiggins
Created: 2011-10-19 01:35:44+00:00
State: open

Originally filed by dan...@gmail.com on 2011-07-28T02:56:34

What steps will reproduce the problem?
1. Run rdflib-3.1.0 tests with Python 2.4

What is the expected output? What do you see instead?

File "/usr/lib/python2.4/site-packages/rdflib/plugins/serializers/nt.py", line 47
chars.append('\u%04X' % ord(char) if ord(char) <= 0xFFFF else '\U%08X' % ord(char))
^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?
rdflib 3.1.0 with Python 2.4

Patch attached.