Skip to content

Commit

Permalink
Update Linux.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow authored Mar 5, 2024
1 parent 475fe9c commit 4e91a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def communicate(self, *args, **kwargs):
def __getattribute__(self, name_):
att = super().__getattribute__(name_)
if name_ == "stdout" and att is not None:
att.read = self.wrapper_read(att.read)
att.read = self.read_wrapper(att.read)
return att

@staticmethod
def wrapper_read(func):
def read_wrapper(func):

if func.__name__ == "wrapper":
return func
Expand Down

0 comments on commit 4e91a33

Please sign in to comment.