Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ce95d2

Browse files
committed
Make json.tool delegate to json.__main__
1 parent 1226315 commit 7ce95d2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lib/json/tool.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
3+
from .__main__ import main
4+
5+
6+
if __name__ == '__main__':
7+
try:
8+
main()
9+
except BrokenPipeError as exc:
10+
sys.exit(exc.errno)

0 commit comments

Comments
 (0)