Skip to content

Commit 0886a19

Browse files
tirkarthidavidlehn
authored andcommitted
Fix deprecation warnings due to invalid escape sequences.
1 parent 045bce2 commit 0886a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pyld/jsonld.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5197,7 +5197,7 @@ def _create_term_definition(self, active_ctx, local_ctx, term, defined, options,
51975197
mapping['_prefix'] = (
51985198
_simple_term and
51995199
not mapping['_term_has_colon'] and
5200-
bool(re.match('.*[:/\?#\[\]@]$', id_)))
5200+
bool(re.match(r'.*[:/\?#\[\]@]$', id_)))
52015201
if '@id' not in mapping:
52025202
# see if the term has a prefix
52035203
if mapping['_term_has_colon']:

0 commit comments

Comments
 (0)