Skip to content

Commit

Permalink
added spw's suggestion of a tuble test for startswith
Browse files Browse the repository at this point in the history
  • Loading branch information
geekscrapy authored Sep 14, 2023
1 parent 78f3356 commit cc327cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/loaders/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def iterload(self):
try:
if not L: # skip blank lines
continue
elif L.startswith('#') or L.startswith('//'): # skip commented lines
elif L.startswith(('#', '//')): # skip commented lines
continue
ret = json.loads(L, object_hook=AttrDict)
if isinstance(ret, list):
Expand Down

0 comments on commit cc327cc

Please sign in to comment.