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
1
2
import sys
2
- import yaml
3
- import blessed
4
- import ruamel .yaml
5
3
6
4
if sys .argv [1 ] == "--pyyaml-version" :
7
5
try :
6
+ import yaml
8
7
print ("pyyaml" , yaml .__version__ )
9
8
sys .exit (0 )
10
9
except SystemExit :
11
10
sys .exit (0 )
12
- except :
11
+ except Exception :
13
12
print ("could not get pyyaml version" )
14
13
sys .exit (3 )
15
14
16
15
if sys .argv [1 ] == "--pyaml-version" :
17
16
try :
17
+ import ruamel .yaml
18
18
print ("ruamel.yaml" , ruamel .yaml .__version__ )
19
19
sys .exit (0 )
20
20
except SystemExit :
21
21
sys .exit (0 )
22
- except :
22
+ except Exception :
23
23
print ("could not get ruamel.yaml version" )
24
24
sys .exit (3 )
25
25
26
26
if sys .argv [1 ] == "--blessed-version" :
27
27
try :
28
+ import blessed
28
29
print ("blessed" , blessed .__version__ )
29
30
sys .exit (0 )
30
31
except SystemExit :
31
32
sys .exit (0 )
32
- except :
33
+ except Exception :
33
34
print ("could not get blessed version" )
34
35
sys .exit (3 )
You can’t perform that action at this time.
0 commit comments