[yum-commits] Branch 'yum-3_2_X' - 2 commits - yum/depsolve.py yum/i18n.py
Tim Lauridsen
timlau at osuosl.org
Mon Mar 30 08:17:14 UTC 2009
yum/depsolve.py | 16 ++++++++--------
yum/i18n.py | 8 ++++----
2 files changed, 12 insertions(+), 12 deletions(-)
New commits:
commit 096d834b46c55c13b5d5e4c6905b63b29c47adc0
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Mon Mar 30 10:17:04 2009 +0200
fix ; pylint errors
diff --git a/yum/i18n.py b/yum/i18n.py
index 51df81f..24c9825 100755
--- a/yum/i18n.py
+++ b/yum/i18n.py
@@ -72,13 +72,13 @@ def __utf8_bisearch(ucs, table):
return False
while max >= min:
- mid = (min + max) / 2;
+ mid = (min + max) / 2
if ucs > table[mid][1]:
- min = mid + 1;
+ min = mid + 1
elif ucs < table[mid][0]:
- max = mid - 1;
+ max = mid - 1
else:
- return True
+ return True
return False
commit 044eadff86535409ebfdabe57cd05e96b28e588c
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Mon Mar 30 10:14:04 2009 +0200
fix indentation pylint warnings
diff --git a/yum/depsolve.py b/yum/depsolve.py
index 2061376..fdf48a3 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -45,14 +45,14 @@ try:
assert max(2, 4) == 4
except:
# Python-2.4.x doesn't have min/max ... *sigh*
- def min(x, *args):
- for y in args:
- if x > y: x = y
- return x
- def max(x, *args):
- for y in args:
- if x < y: x = y
- return x
+ def min(x, *args):
+ for y in args:
+ if x > y: x = y
+ return x
+ def max(x, *args):
+ for y in args:
+ if x < y: x = y
+ return x
flags = {"GT": rpm.RPMSENSE_GREATER,
"GE": rpm.RPMSENSE_EQUAL | rpm.RPMSENSE_GREATER,
"LT": rpm.RPMSENSE_LESS,
More information about the Yum-commits
mailing list