summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@users.noreply.github.com>2017-05-01 17:46:59 +0200
committerGitHub <noreply@github.com>2017-05-01 17:46:59 +0200
commit1cce4fd2dfcf1ed8159a070315608f4b226fb074 (patch)
tree15acc6d225d9f67f7e6a62d3b10e56d8f6f18669
parent4dc15e38835240e6690e1b0218d26cdaf0f634a0 (diff)
parent5555165aae3125d033d1c17f063fae6f06d8f15d (diff)
downloadrdflib-1cce4fd2dfcf1ed8159a070315608f4b226fb074.tar.gz
Merge pull request #736 from hsolbrig/master
Adds escaped single quote to literal parser
-rwxr-xr-xrdflib/plugins/parsers/notation3.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdflib/plugins/parsers/notation3.py b/rdflib/plugins/parsers/notation3.py
index d2c27711..e9f4f66b 100755
--- a/rdflib/plugins/parsers/notation3.py
+++ b/rdflib/plugins/parsers/notation3.py
@@ -1585,9 +1585,9 @@ class SinkParser:
raise BadSyntax(
self._thisDoc, startline, argstr, i,
"unterminated string literal (2)")
- k = 'abfrtvn\\"'.find(ch)
+ k = 'abfrtvn\\"\''.find(ch)
if k >= 0:
- uch = '\a\b\f\r\t\v\n\\"'[k]
+ uch = '\a\b\f\r\t\v\n\\"\''[k]
ustr = ustr + uch
j = j + 1
elif ch == "u":