@@ -43,7 +43,8 @@ def get_sys_info() -> List[Tuple[str, Optional[Union[str, int]]]]:
43
43
("python-bits" , struct .calcsize ("P" ) * 8 ),
44
44
("OS" , f"{ sysname } " ),
45
45
("OS-release" , f"{ release } " ),
46
- # ("Version", "{version}".format(version=version)),
46
+ # FIXME: dont leave commented-out
47
+ # ("Version", f"{version}"),
47
48
("machine" , f"{ machine } " ),
48
49
("processor" , f"{ processor } " ),
49
50
("byteorder" , f"{ sys .byteorder } " ),
@@ -114,14 +115,13 @@ def show_versions(as_json=False):
114
115
115
116
else :
116
117
maxlen = max (len (x ) for x in deps )
117
- tpl = "{{k:<{maxlen}}}: {{stat}}" .format (maxlen = maxlen )
118
118
print ("\n INSTALLED VERSIONS" )
119
119
print ("------------------" )
120
120
for k , stat in sys_info :
121
- print (tpl . format ( k = k , stat = stat ) )
121
+ print (f"{{k:< { maxlen } }}: {{ stat}}" )
122
122
print ("" )
123
123
for k , stat in deps_blob :
124
- print (tpl . format ( k = k , stat = stat ) )
124
+ print (f"{{k:< { maxlen } }}: {{ stat}}" )
125
125
126
126
127
127
def main () -> int :
0 commit comments