diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2016-06-04 23:15:25 +0300 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2016-06-09 12:48:36 +0200 |
commit | c2519be9565ba455ccf0da3a7f92d5187398f83b (patch) | |
tree | df4803afdd43ebe7429b1b61414a870171b26a48 | |
parent | 5d58a17f7d44e9e40b894eda03e30b4c66182315 (diff) | |
download | rpm-c2519be9565ba455ccf0da3a7f92d5187398f83b.tar.gz |
python: Trivial code cleanups
-rw-r--r-- | python/rpm/transaction.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/rpm/transaction.py b/python/rpm/transaction.py index ebb41aea7..bb8619316 100644 --- a/python/rpm/transaction.py +++ b/python/rpm/transaction.py @@ -139,11 +139,11 @@ class TransactionSet(TransactionSetCore): needflags = rpm.RPMSENSE_ANY if len(needs) == 3: needop = needs[1] - if needop.find('<') >= 0: + if '<' in needop: needflags |= rpm.RPMSENSE_LESS - if needop.find('=') >= 0: + if '=' in needop: needflags |= rpm.RPMSENSE_EQUAL - if needop.find('>') >= 0: + if '>' in needop: needflags |= rpm.RPMSENSE_GREATER needver = needs[2] else: |