summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/rpmtools.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/rpmtools.py')
-rwxr-xr-xsrc/lib/Client/Tools/rpmtools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/rpmtools.py b/src/lib/Client/Tools/rpmtools.py
index d751270e6..8e3473239 100755
--- a/src/lib/Client/Tools/rpmtools.py
+++ b/src/lib/Client/Tools/rpmtools.py
@@ -184,7 +184,7 @@ def getindexbykeyword(index_ts, **kwargs):
else:
index_mi = index_ts.dbMatch()
- if kwargs.has_key('epoch'):
+ if 'epoch' in kwargs:
if kwargs['epoch'] != None and kwargs['epoch'] != 'None':
kwargs['epoch'] = int(kwargs['epoch'])
else:
@@ -222,7 +222,7 @@ def getheadersbykeyword(header_ts, **kwargs):
else:
header_mi = header_ts.dbMatch()
- if kwargs.has_key('epoch'):
+ if 'epoch' in kwargs:
if kwargs['epoch'] != None and kwargs['epoch'] != 'None':
kwargs['epoch'] = int(kwargs['epoch'])
else: