summaryrefslogtreecommitdiff
path: root/pexpect/fdpexpect.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/fdpexpect.py')
-rw-r--r--pexpect/fdpexpect.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pexpect/fdpexpect.py b/pexpect/fdpexpect.py
index 8797e43..90eb440 100644
--- a/pexpect/fdpexpect.py
+++ b/pexpect/fdpexpect.py
@@ -49,13 +49,13 @@ class fdspawn (spawn):
def close (self):
- if super(fdspawn, self).child_fd == -1:
+ if self.child_fd == -1:
return
if self.own_fd:
- super(fdspawn, self).close (self)
+ self.close (self)
else:
self.flush()
- os.close(super(fdspawn, self).child_fd)
+ os.close(self.child_fd)
self.child_fd = -1
self.closed = True