summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-08-18 00:43:58 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2002-08-18 00:43:58 +0000
commit1bb1bb285f9d690ddadf4abcee901c43beb3bf41 (patch)
treef8011d56fd5d5ff30b28e4a005fb26b1925778c3
parentae9d496ca9a981c1ee4014a9411c53a9bcb8f03d (diff)
downloadpyserial-git-1bb1bb285f9d690ddadf4abcee901c43beb3bf41.tar.gz
remove the mapping of flush to the destructive flushOutput as this is not the expected behaviour
-rw-r--r--pyserial/serial/serialutil.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pyserial/serial/serialutil.py b/pyserial/serial/serialutil.py
index a0c6f97..55ced9f 100644
--- a/pyserial/serial/serialutil.py
+++ b/pyserial/serial/serialutil.py
@@ -59,10 +59,6 @@ class FileLike:
self.write(line)
def flush(self):
- """map flush to flushOutput, ignore exception when that
- method is not available"""
- try:
- self.flushOutput()
- except AttributeError:
- pass
+ """flush of file like objects"""
+ pass