From 861479b454d614af5a7739c5410117aabe01122f Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 19 Nov 2015 10:51:34 -0800 Subject: remove compat os.devnull. python 2.7 supports it --- src/engine/SCons/compat/__init__.py | 11 ----------- 1 file changed, 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: -- cgit v0.12