File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/python3
12import sys
2- import yaml
3- import blessed
4- import ruamel .yaml
53
64if sys .argv [1 ] == "--pyyaml-version" :
75 try :
6+ import yaml
87 print ("pyyaml" , yaml .__version__ )
98 sys .exit (0 )
109 except SystemExit :
1110 sys .exit (0 )
12- except :
11+ except Exception :
1312 print ("could not get pyyaml version" )
1413 sys .exit (3 )
1514
1615if sys .argv [1 ] == "--pyaml-version" :
1716 try :
17+ import ruamel .yaml
1818 print ("ruamel.yaml" , ruamel .yaml .__version__ )
1919 sys .exit (0 )
2020 except SystemExit :
2121 sys .exit (0 )
22- except :
22+ except Exception :
2323 print ("could not get ruamel.yaml version" )
2424 sys .exit (3 )
2525
2626if sys .argv [1 ] == "--blessed-version" :
2727 try :
28+ import blessed
2829 print ("blessed" , blessed .__version__ )
2930 sys .exit (0 )
3031 except SystemExit :
3132 sys .exit (0 )
32- except :
33+ except Exception :
3334 print ("could not get blessed version" )
3435 sys .exit (3 )
You can’t perform that action at this time.
0 commit comments