Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c04de6

Browse filesBrowse files
committed
Fix packager
1 parent 0d163a1 commit 5c04de6
Copy full SHA for 5c04de6

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎package/merge_packages.py

Copy file name to clipboard
100644100755
Expand all lines: package/merge_packages.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ def pkgVersionNormalized(versionString):
3636
verParts = re.split('\.|-rc', verStr, flags=re.IGNORECASE)
3737

3838
if len(verParts) == 3:
39-
verStr = str(versionString) + '-rc' + str(sys.maxint)
39+
if (sys.version_info > (3, 0)): # Python 3
40+
verStr = str(versionString) + '-rc' + str(sys.maxsize)
41+
else: # Python 2
42+
verStr = str(versionString) + '-rc' + str(sys.maxint)
43+
4044
elif len(verParts) != 4:
4145
print("pkgVersionNormalized WARNING: unexpected version format: {0})".format(verStr), file=sys.stderr)
4246

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.