Skip to content

Commit

Permalink
Revert "Fix for cgi import and empty <B>"
Browse files Browse the repository at this point in the history
This reverts commit 0a2b4fc.
  • Loading branch information
datadavev committed Aug 10, 2020
1 parent c75d181 commit 89989b7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions rdflib/tools/rdf2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import rdflib.extras.cmdlineutils

import sys
import html as cgi
import cgi
import collections

from rdflib import XSD
Expand Down Expand Up @@ -103,14 +103,9 @@ def label(x, g):
return l

try:
l = g.namespace_manager.compute_qname(x)[2]
if l:
return l
return g.namespace_manager.compute_qname(x)[2]
except:
if x:
return x
#dot throws up a little with empty <B>
return " "
return x

def formatliteral(l, g):
v = cgi.escape(l)
Expand Down

0 comments on commit 89989b7

Please sign in to comment.