Eric Rochester committed c46d250

Fixed bug in newspaper script. Probably from 3rd-party library API change.

Comments (0)

Files changed (1)


 import rdflib
 from rdflib import plugin
-from rdflib import Literal, Namespace, URIRef
+from rdflib import Namespace, URIRef
 from rdflib import Graph
     load_coverage(g, sample)
     print('Serializing to %s.' % (filename,))
-    g.serialize(filename, format='n3')
+    with open(filename, 'w') as f:
+        g.serialize(f, format='n3')
     return g