diff --git a/README.md b/README.md index a6820b4f..b0dfd9bb 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ Streaming parsers accept any iterable object and return a generator iterator obj To use the generator object in your code, simply loop through it: -``` +```python import jc.parsers.ls_s result = jc.parsers.ls_s.parse(ls_command_output.splitlines()) diff --git a/templates/readme_template b/templates/readme_template index 372c333f..5b7dbcd5 100644 --- a/templates/readme_template +++ b/templates/readme_template @@ -199,7 +199,7 @@ Streaming parsers accept any iterable object and return a generator iterator obj To use the generator object in your code, simply loop through it: -``` +```python import jc.parsers.ls_s result = jc.parsers.ls_s.parse(ls_command_output.splitlines())