We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6d261 commit 2fb7cb7Copy full SHA for 2fb7cb7
1 file changed
libzim/libzim.pyx
@@ -1266,12 +1266,13 @@ cdef class Version:
1266
def print_version(out: Union[sys.stdout, sys.stderr] = sys.stdout):
1267
versions = Version.get_versions()
1268
for i, version in enumerate(versions):
1269
- output = ""
+ prefix = ""
1270
if i > 0:
1271
- output += "+ "
1272
- output += version[0].decode("utf-8")
1273
- output += " "
1274
- output += version[1].decode("utf-8")
+ prefix= "+"
+ output = "{prefix} {version_name} {version_value}".format(
+ prefix=prefix,
+ version_name=version[0].decode("utf-8"),
1275
+ version_value=version[1].decode("utf-8"))
1276
print(output, file=out)
1277
1278
0 commit comments