summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dep.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/dep.py b/pym/portage/dep.py
index 993c23bdd..efabee262 100644
--- a/pym/portage/dep.py
+++ b/pym/portage/dep.py
@@ -427,8 +427,8 @@ def get_operator(mydep):
@return: The operator. One of:
'~', '=', '>', '<', '=*', '>=', or '<='
"""
- operator = getattr(mydep, "operator", None)
- if operator is not None:
+ operator = getattr(mydep, "operator", False)
+ if operator is not False:
return operator
if mydep:
mydep = remove_slot(mydep)
@@ -502,8 +502,8 @@ def dep_getslot(mydep):
@rtype: String
@return: The slot
"""
- slot = getattr(mydep, "slot", None)
- if slot is not None:
+ slot = getattr(mydep, "slot", False)
+ if slot is not False:
return slot
colon = mydep.find(":")
if colon != -1: