[pypy-svn] r27498 - pypy/dist/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Sat May 20 13:00:40 CEST 2006


Author: arigo
Date: Sat May 20 13:00:38 2006
New Revision: 27498

Modified:
   pypy/dist/pypy/translator/interactive.py
Log:
Don't silently ignore unknown options


Modified: pypy/dist/pypy/translator/interactive.py
==============================================================================
--- pypy/dist/pypy/translator/interactive.py	(original)
+++ pypy/dist/pypy/translator/interactive.py	Sat May 20 13:00:38 2006
@@ -105,6 +105,8 @@
                 if getattr(self.driver.options, optname) != value:
                      raise Exception("inconsistent option supplied: %s" % optname)
             else:
+                if not hasattr(self.driver.options, optname):
+                    raise TypeError('driver has no option %r' % (optname,))
                 setattr(self.driver.options, optname, value)
                 self.frozen_options[optname] = True
 



More information about the Pypy-commit mailing list