move __future__ import to top of file
Markus Gerstel
6 years ago
0 | 0 | # -*- coding: utf-8 -*- |
1 | 1 | |
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 | |
7 | 14 | |
8 | 15 | # |
9 | 16 | # run_process() - A function to synchronously run an external process, |
40 | 47 | # 'timeout': False} |
41 | 48 | # |
42 | 49 | |
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 | |
55 | 55 | |
56 | 56 | logger = logging.getLogger('procrunner') |
57 | 57 | logger.addHandler(logging.NullHandler()) |
58 | ||
59 | dummy = False | |
60 | 58 | |
61 | 59 | class _LineAggregator: |
62 | 60 | '''Buffer that can be filled with stream data and will aggregate complete |