summaryrefslogtreecommitdiffstats
path: root/pym/portage_versions.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage_versions.py')
-rw-r--r--pym/portage_versions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage_versions.py b/pym/portage_versions.py
index b80e3739e..1a9fdd054 100644
--- a/pym/portage_versions.py
+++ b/pym/portage_versions.py
@@ -75,9 +75,9 @@ def vercmp(ver1, ver2, silent=1):
# building lists of the version parts before the suffix
# first part is simple
- list1 = [string.atoi(match1.group(2))]
- list2 = [string.atoi(match2.group(2))]
-
+ list1 = [int(match1.group(2))]
+ list2 = [int(match2.group(2))]
+
# this part would greatly benefit from a fixed-length version pattern
if len(match1.group(3)) or len(match2.group(3)):
vlist1 = match1.group(3)[1:].split(".")