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

Unified Diff: third_party/scons/scons-local/SCons/compat/__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/compat/__init__.py
===================================================================
--- third_party/scons/scons-local/SCons/compat/__init__.py (revision 7505)
+++ third_party/scons/scons-local/SCons/compat/__init__.py (working copy)
@@ -60,7 +60,7 @@
rest of our code will find our pre-loaded compatibility module.
"""
-__revision__ = "src/engine/SCons/compat/__init__.py 3603 2008/10/10 05:46:45 scons"
+__revision__ = "src/engine/SCons/compat/__init__.py 3842 2008/12/20 22:59:52 scons"
def import_as(module, name):
"""
@@ -155,6 +155,19 @@
# Pre-2.3 Python has no optparse module.
import_as('_scons_optparse', 'optparse')
+import os
+try:
+ os.devnull
+except AttributeError:
+ # Pre-2.4 Python has no os.devnull attribute
+ import sys
+ _names = sys.builtin_module_names
+ if 'posix' in _names:
+ os.devnull = '/dev/null'
+ elif 'nt' in _names:
+ os.devnull = 'nul'
+ os.path.devnull = os.devnull
+
import shlex
try:
shlex.split
« no previous file with comments | « third_party/scons/scons-local/SCons/__init__.py ('k') | third_party/scons/scons-local/SCons/compat/_scons_UserString.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698