diff options
Diffstat (limited to 'src/lib/Client/Tools/rpmtools.py')
-rwxr-xr-x | src/lib/Client/Tools/rpmtools.py | 4 |
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: |