summaryrefslogtreecommitdiff
path: root/rdflib/tools
diff options
context:
space:
mode:
authorangus <hanno.jung@googlemail.com>2020-08-27 10:53:41 +0200
committerangus <hanno.jung@googlemail.com>2020-08-27 10:53:41 +0200
commit00053142f392c3a7993911e4bebaab00031fc819 (patch)
tree0d0e909e0dc0dde7628d855b02ccabf2530c5b35 /rdflib/tools
parent652d2e60eff064bfa803474919c88c0e84134cef (diff)
downloadrdflib-00053142f392c3a7993911e4bebaab00031fc819.tar.gz
replace cgi by html, fixes issue #1110
Diffstat (limited to 'rdflib/tools')
-rw-r--r--rdflib/tools/rdf2dot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdflib/tools/rdf2dot.py b/rdflib/tools/rdf2dot.py
index 84e3d359..37c8f784 100644
--- a/rdflib/tools/rdf2dot.py
+++ b/rdflib/tools/rdf2dot.py
@@ -13,7 +13,7 @@ import rdflib
import rdflib.extras.cmdlineutils
import sys
-import cgi
+import html
import collections
from rdflib import XSD
@@ -106,7 +106,7 @@ def rdf2dot(g, stream, opts={}):
return x
def formatliteral(l, g):
- v = cgi.escape(l)
+ v = html.escape(l)
if l.datatype:
return "&quot;%s&quot;^^%s" % (v, qname(l.datatype, g))
elif l.language: