comparison mxtool/mx.py @ 18900:7e500c20208c

fixed pylint issue
author Doug Simon <doug.simon@oracle.com>
date Wed, 21 Jan 2015 19:03:37 +0100
parents 8e8b4a6a85f5
children 9aa1cff041eb
comparison
equal deleted inserted replaced
18899:8e8b4a6a85f5 18900:7e500c20208c
1878 env = os.environ.copy() 1878 env = os.environ.copy()
1879 1879
1880 # Ideally the command line could be communicated directly in an environment 1880 # Ideally the command line could be communicated directly in an environment
1881 # variable. However, since environment variables share the same resource 1881 # variable. However, since environment variables share the same resource
1882 # space as the command line itself (on Unix at least), this would cause the 1882 # space as the command line itself (on Unix at least), this would cause the
1883 # limit to be exceeded too easily. 1883 # limit to be exceeded too easily.
1884 _, subprocessCommandFile = tempfile.mkstemp(suffix='', prefix='mx_subprocess_command.') 1884 _, subprocessCommandFile = tempfile.mkstemp(suffix='', prefix='mx_subprocess_command.')
1885 with open(subprocessCommandFile, 'w') as fp: 1885 with open(subprocessCommandFile, 'w') as fp:
1886 for arg in args: 1886 for arg in args:
1887 # TODO: handle newlines in args once there's a use case 1887 # TODO: handle newlines in args once there's a use case
1888 assert '\n' not in arg 1888 assert '\n' not in arg