diff options
author | hsolbrig <solbrig.harold@mayo.edu> | 2017-04-19 10:08:04 -0500 |
---|---|---|
committer | hsolbrig <solbrig.harold@mayo.edu> | 2017-04-19 10:08:04 -0500 |
commit | 5555165aae3125d033d1c17f063fae6f06d8f15d (patch) | |
tree | 15acc6d225d9f67f7e6a62d3b10e56d8f6f18669 | |
parent | 4dc15e38835240e6690e1b0218d26cdaf0f634a0 (diff) | |
download | rdflib-5555165aae3125d033d1c17f063fae6f06d8f15d.tar.gz |
Adds escaped single quote to literal parser
-rwxr-xr-x | rdflib/plugins/parsers/notation3.py | 4 |
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": |