Skip to content

Commit

Permalink
Fixed Failing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fahadsiddiqui committed Sep 21, 2020
1 parent b0311f4 commit 4672759
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions petl/io/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ def fromjson(source, *args, **kwargs):
please visit https://jsonlines.org/.
>>> import petl as etl
>>> data_with_jlines = '''
... {"name": "Gilbert", "wins": [["straight", "7S"], ["one pair", "10H"]]}
>>> data_with_jlines = '''{"name": "Gilbert", "wins": [["straight", "7S"], ["one pair", "10H"]]}
... {"name": "Alexa", "wins": [["two pair", "4S"], ["two pair", "9S"]]}
... {"name": "May", "wins": []}
... {"name": "Deloise", "wins": [["three of a kind", "5S"]]}
... '''
... {"name": "Deloise", "wins": [["three of a kind", "5S"]]}'''
...
>>> with open('example2.json', 'w') as f:
... f.write(data_with_jlines)
...
225
223
>>> table2 = etl.fromjson('example2.json', lines=True)
>>> table2
+---------+-------------------------------------------+
Expand Down

0 comments on commit 4672759

Please sign in to comment.