Skip to content

Commit

Permalink
namespace.py rewrote change to is_ncname for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed Dec 3, 2017
1 parent f9bd1df commit 00c24cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def is_ncname(name):
for i in range(1, len(name)):
c = name[i]
if not category(c) in NAME_CATEGORIES:
if c in ALLOWED_NAME_CHARS[:-1]:
if c != ':' and c in ALLOWED_NAME_CHARS:
continue
return 0
# if in compatibility area
Expand Down

0 comments on commit 00c24cd

Please sign in to comment.