Skip to content

Commit 3be5c76

Browse files
committed
use Query.file_exists()
1 parent f7feb34 commit 3be5c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elixir/filters/cpppathinc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def replace_cpppathinc(m):
4040
w = self.cpppathinc[decode_number(m.group(1)) - 1]
4141
for p in self.prefix_path:
4242
path = f'/%s/{ w }' % p
43-
if ctx.query.query('exist', ctx.tag, path):
43+
if ctx.query.file_exists(ctx.tag, path):
4444
return f'<a href="{ ctx.get_absolute_source_url(path) }">{ w }</a>'
4545
return w
4646

0 commit comments

Comments
 (0)