Skip to content

Commit

Permalink
Fix fromjson() to support reading from stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
yaniv-aknin committed Apr 25, 2024
1 parent 1e77626 commit 5091beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petl/io/json.py
Expand Up @@ -16,7 +16,7 @@
from petl.util.base import data, Table, dicts as _dicts, iterpeek


def fromjson(source, *args, **kwargs):
def fromjson(source=None, *args, **kwargs):

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Keyword argument before variable positional arguments list in the definition of fromjson function Note

Keyword argument before variable positional arguments list in the definition of fromjson function

Check notice

Code scanning / Pylint (reported by Codacy)

Keyword argument before variable positional arguments list in the definition of fromjson function Note

Keyword argument before variable positional arguments list in the definition of fromjson function

Check warning

Code scanning / Prospector (reported by Codacy)

Keyword argument before variable positional arguments list in the definition of fromjson function (keyword-arg-before-vararg) Warning

Keyword argument before variable positional arguments list in the definition of fromjson function (keyword-arg-before-vararg)
"""
Extract data from a JSON file. The file must contain a JSON array as
the top level object, and each member of the array will be treated as a
Expand Down

0 comments on commit 5091beb

Please sign in to comment.