* [gentoo-commits] portage r13874 - main/trunk/pym/_emerge
@ 2009-08-01 20:02 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-08-01 20:02 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-08-01 20:02:37 +0000 (Sat, 01 Aug 2009)
New Revision: 13874
Modified:
main/trunk/pym/_emerge/main.py
Log:
Only treat non-negative integers as valid in insert_optional_args().
Modified: main/trunk/pym/_emerge/main.py
===================================================================
--- main/trunk/pym/_emerge/main.py 2009-08-01 19:58:52 UTC (rev 13873)
+++ main/trunk/pym/_emerge/main.py 2009-08-01 20:02:37 UTC (rev 13874)
@@ -368,10 +368,9 @@
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()
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-01 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-01 20:02 [gentoo-commits] portage r13874 - main/trunk/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox