diff options
author | William Deegan <bill@baddogconsulting.com> | 2015-11-19 18:51:34 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2015-11-19 18:51:34 (GMT) |
commit | 861479b454d614af5a7739c5410117aabe01122f (patch) | |
tree | 931345e17aaa77b6f24b669829e11e2aea27111d | |
parent | 20bbea44264012aa96806c661f904b38ba5639d4 (diff) | |
download | SCons-861479b454d614af5a7739c5410117aabe01122f.zip SCons-861479b454d614af5a7739c5410117aabe01122f.tar.gz SCons-861479b454d614af5a7739c5410117aabe01122f.tar.bz2 |
remove compat os.devnull. python 2.7 supports it
-rw-r--r-- | src/engine/SCons/compat/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py index 68fb9e4..42c2eaa 100644 --- a/src/engine/SCons/compat/__init__.py +++ b/src/engine/SCons/compat/__init__.py @@ -103,17 +103,6 @@ except ImportError: # can fall back to using timestamp. pass - -try: - os.devnull -except AttributeError: - # Pre-2.4 Python has no os.devnull attribute - _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 try: os.path.lexists except AttributeError: |