diff options
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r-- | Lib/rexec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py index 76e8b40..0d1b5a1 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -38,7 +38,7 @@ class FileWrapper(FileBase): def __init__(self, f): self.f = f for m in self.ok_file_methods: - if not hasattr(self, m): + if not hasattr(self, m) and hasattr(f, m): setattr(self, m, getattr(f, m)) def close(self): |