summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index ca3857051..99ae3d138 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -368,10 +368,9 @@ def insert_optional_args(args):
class valid_integers(object):
def __contains__(self, s):
try:
- int(s)
+ return int(s) >= 0
except (ValueError, OverflowError):
return False
- return True
valid_integers = valid_integers()