Codebase list python-procrunner / 393feca
move __future__ import to top of file Markus Gerstel 6 years ago
1 changed file(s) with 17 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
00 # -*- coding: utf-8 -*-
11
2 """Top-level package for ProcRunner."""
3
4 __author__ = """Markus Gerstel"""
5 __email__ = 'scientificsoftware@diamond.ac.uk'
6 __version__ = '0.1.0'
2 from __future__ import absolute_import, division, print_function
3
4 import copy
5 import logging
6 import os
7 import select
8 import subprocess
9 import time
10 import timeit
11 from cStringIO import StringIO
12 from multiprocessing import Pipe
13 from threading import Thread
714
815 #
916 # run_process() - A function to synchronously run an external process,
4047 # 'timeout': False}
4148 #
4249
43 from __future__ import absolute_import, division, print_function
44
45 import copy
46 import logging
47 import os
48 import select
49 import subprocess
50 import time
51 import timeit
52 from cStringIO import StringIO
53 from multiprocessing import Pipe
54 from threading import Thread
50 __author__ = """Markus Gerstel"""
51 __email__ = 'scientificsoftware@diamond.ac.uk'
52 __version__ = '0.1.0'
53
54 dummy = False
5555
5656 logger = logging.getLogger('procrunner')
5757 logger.addHandler(logging.NullHandler())
58
59 dummy = False
6058
6159 class _LineAggregator:
6260 '''Buffer that can be filled with stream data and will aggregate complete