Пример #1
0
 def switch(self, *args, **kw):
     self.saved = sys.stdin, sys.stderr, sys.stdout
     sys.stdin = sys.stdout = sys.stderr = self.desc
     Greenlet.switch(self, *args, **kw)
Пример #2
0
 def switch(self, *args, **kw):
     self.saved = sys.stdin, sys.stderr, sys.stdout
     sys.stdin = sys.stdout = sys.stderr = self.desc
     Greenlet.switch(self, *args, **kw)
Пример #3
0
 def switch(self, *args, **kw):
     if self._fileobj is not None:
         self.switch_in()
     Greenlet.switch(self, *args, **kw)
Пример #4
0
 def switch(self, *args, **kw):
     if self._fileobj is not None:
         self.switch_in()
     Greenlet.switch(self, *args, **kw)
Пример #5
0
 def switch(self, *args, **kw):
     if self.stdin is not None:
         self.switch_in()
     Greenlet.switch(self, *args, **kw)
Пример #6
0
 def switch(self, *args, **kw):
     if self._fileobj is not None:
         self.switch_in()
     Greenlet.switch(self, *args, **kw)  # pylint:disable=no-member
Пример #7
0
 def switch(self, *args, **kw):
     if self._fileobj is not None:
         self.switch_in()
     Greenlet.switch(self, *args, **kw) # pylint:disable=no-member