Commit ac44f1c
Fix setting inheritance on None-fd
When gnuplotlib is called from an environment that changes sys.stdout,
then self.fdDupSTDOUT is None. However, we still try to make the fd
inheritable, which fails.
This fix only makes the duplicated fd inheritable if it in fact was able
to be duplicated.1 parent 5c04873 commit ac44f1c
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1502 | 1502 | | |
1503 | 1503 | | |
1504 | 1504 | | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
1508 | | - | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
1509 | 1510 | | |
1510 | 1511 | | |
1511 | 1512 | | |
| |||
0 commit comments