Beispiel #1
0
 def safe_communicate(self, stdin=None, outlimit=None, errlimit=None):
     try:
         stdout, stderr = safe_communicate(self, stdin, outlimit, errlimit)
         self.feedback = self._find_exception(stderr)
         return stdout, stderr
     finally:
         self._update_stats()
 def safe_communicate(self, stdin=None, outlimit=None, errlimit=None):
     try:
         return self._communicate(*safe_communicate(self.process, stdin, outlimit, errlimit))
     except OutputLimitExceeded:
         if windows:
             self._update_windows_stats()
         else:
             self._fallback_unix_stats()
         raise
Beispiel #3
0
 def safe_communicate(self, stdin=None, outlimit=None, errlimit=None):
     try:
         return self._communicate(
             *safe_communicate(self.process, stdin, outlimit, errlimit))
     except OutputLimitExceeded:
         if windows:
             self._update_windows_stats()
         else:
             self._fallback_unix_stats()
         raise