Skip to content

Commit

Permalink
Merge pull request #1529 from gjhiggins/fix-issue821
Browse files Browse the repository at this point in the history
Fix `self.line` typos in call to BadSyntax.
  • Loading branch information
nicholascar committed Dec 28, 2021
2 parents 839cdd8 + 215b022 commit 26ad286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rdflib/plugins/parsers/notation3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ def qname(self, argstr, i, res):
if c not in escapeChars:
raise BadSyntax(
self._thisDoc,
self.line,
self.lines,
argstr,
i,
"illegal escape " + c,
Expand All @@ -1374,7 +1374,7 @@ def qname(self, argstr, i, res):
):
raise BadSyntax(
self._thisDoc,
self.line,
self.lines,
argstr,
i,
"illegal hex escape " + c,
Expand All @@ -1386,7 +1386,7 @@ def qname(self, argstr, i, res):

if lastslash:
raise BadSyntax(
self._thisDoc, self.line, argstr, i, "qname cannot end with \\"
self._thisDoc, self.lines, argstr, i, "qname cannot end with \\"
)

if argstr[i - 1] == ".":
Expand Down

0 comments on commit 26ad286

Please sign in to comment.