diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-20 08:28:19 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-20 08:28:19 +0000 |
commit | 95423d8a20c53608538a2e26f9be541d7c7cb210 (patch) | |
tree | 6376ae38979e30208135abd0072549a3b7b0a566 /pym/portage/versions.py | |
parent | 284ba0d3cd79a09a4c4f247f54e9d733b906bec0 (diff) | |
download | portage-95423d8a20c53608538a2e26f9be541d7c7cb210.tar.gz portage-95423d8a20c53608538a2e26f9be541d7c7cb210.tar.bz2 portage-95423d8a20c53608538a2e26f9be541d7c7cb210.zip |
Normalize try/except indentation for compatibility with 2to3.
svn path=/main/trunk/; revision=13139
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r-- | pym/portage/versions.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 261fa9dea..08e4a3744 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -146,10 +146,14 @@ def vercmp(ver1, ver2, silent=1): if s1[1] != s2[1]: # it's possible that the s(1|2)[1] == '' # in such a case, fudge it. - try: r1 = int(s1[1]) - except ValueError: r1 = 0 - try: r2 = int(s2[1]) - except ValueError: r2 = 0 + try: + r1 = int(s1[1]) + except ValueError: + r1 = 0 + try: + r2 = int(s2[1]) + except ValueError: + r2 = 0 if r1 - r2: return r1 - r2 |