Browse Source

Typo

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.9.0
Erez Sh 4 years ago
parent
commit
41ade56723
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/error_puppet.py

+ 1
- 1
examples/error_puppet.py View File

@@ -28,7 +28,7 @@ def ignore_errors(e):
def main():
s = "[0 1, 2,, 3,,, 4, 5 6 ]"
res = json_parser.parse(s, on_error=ignore_errors)
print(res) # prints [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
print(res) # prints [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0]

main()


Loading…
Cancel
Save