Commit e5daf5d
committed
Instead of invoking Popen, use CommandLine
CommandLine already uses the default encoding to decode the
stdout/stderr of the command, so take advantage of that functionality
rather than re-implementing.
First try was to implement decoding pattern seen elsewhere - then I
changed my mind and used a CommandLine object from the interfaces.base
module.
First Attempt
-------------
Decode the stderr using the default encoding
* Fixes TypeError bug for PBS jobs running on python3.x
* Fixes issue #1959
Second Attempt
--------------
Use the nipype CommandLine class instead of Popen
Remove unused modules
Ignore exceptions in qstat CommandLine call.1 parent ae7af2d commit e5daf5d
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
54 | 52 | | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
0 commit comments