Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
fix: Swallow some warnings about invalid regex sequences in jsonpath_ng
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Jul 8, 2024
1 parent 3b72c04 commit 03ee7ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python_src/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import json
import sys
import warnings

from go_jinja2.jinja2_renderer import Jinja2Renderer

with warnings.catch_warnings():
# jsonpath_ng contains regexes that cause these warnings when importing:
# SyntaxWarning: invalid escape sequence '\('
import jsonpath_ng


def main():
while True:
Expand Down

0 comments on commit 03ee7ee

Please sign in to comment.