Skip to content

Commit 7e9a231

Browse files
committed
I os.set_inheritable(fdDupSTDOUT) if fdDupSTDOUT is not None
Not if it evaluates to True. If for some crazy reason fdDupSTDOUT==0, I'll still try to use it
1 parent ac44f1c commit 7e9a231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnuplotlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ def _startgnuplot(self):
15021502
# would happen by default, but in python3 I need to do this extra thing
15031503
# for some reason. And it's a new thing that didn't exist in python2, so
15041504
# I need to explicitly allow this to fail in python2
1505-
if self.fdDupSTDOUT:
1505+
if self.fdDupSTDOUT is not None:
15061506
try:
15071507
os.set_inheritable(self.fdDupSTDOUT, True)
15081508
except AttributeError:

0 commit comments

Comments
 (0)