Skip to content

Commit 611d8ab

Browse files
zoobaAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent ffdc0b8 commit 611d8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_msbuild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def get_commands():
230230
def _make_xyzw_version(v, sep="."):
231231
"""Calculate a suitable x.y.z.w version from our user-friendly version.
232232
233-
For MSIX in the Store, the fourth field must be 0.
233+
For MSIX in the Microsoft Store, the fourth field must be 0.
234234
235235
For MSI, the first field must be <256.
236236
@@ -245,7 +245,7 @@ def _make_xyzw_version(v, sep="."):
245245
if v.micro:
246246
print("[WARNING]Overriding calculated version field 3 with", v)
247247
micro = v.micro
248-
return "{0}{4}{1}{4}{2}{4}{3}".format(v.major, v.minor, micro, 0, sep)
248+
return sep.join(map(str, (v.major, v.minor, micro, 0)))
249249

250250

251251
def _patch_appx_identity(source, dest, **new):

0 commit comments

Comments
 (0)