Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: third_party/scons/scons-local/SCons/Options/__init__.py

Issue 17024: Update to SCons 1.2.0. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/scons/scons-local/SCons/Options/__init__.py
===================================================================
--- third_party/scons/scons-local/SCons/Options/__init__.py (revision 7505)
+++ third_party/scons/scons-local/SCons/Options/__init__.py (working copy)
@@ -21,7 +21,7 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
-__revision__ = "src/engine/SCons/Options/__init__.py 3603 2008/10/10 05:46:45 scons"
+__revision__ = "src/engine/SCons/Options/__init__.py 3842 2008/12/20 22:59:52 scons"
__doc__ = """Place-holder for the old SCons.Options module hierarchy
@@ -31,6 +31,7 @@
"""
import SCons.Variables
+import SCons.Warnings
from BoolOption import BoolOption # okay
from EnumOption import EnumOption # okay
@@ -38,7 +39,18 @@
from PackageOption import PackageOption # naja
from PathOption import PathOption # okay
+warned = False
+
class Options(SCons.Variables.Variables):
+ def __init__(self, *args, **kw):
+ global warned
+ if not warned:
+ msg = "The Options class is deprecated; use the Variables class instead."
+ SCons.Warnings.warn(SCons.Warnings.DeprecatedOptionsWarning, msg)
+ warned = True
+ apply(SCons.Variables.Variables.__init__,
+ (self,) + args,
+ kw)
def AddOptions(self, *args, **kw):
return apply(SCons.Variables.Variables.AddVariables,
« no previous file with comments | « third_party/scons/scons-local/SCons/Options/PathOption.py ('k') | third_party/scons/scons-local/SCons/PathList.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698