From bdd722320224d1c17ff3cec89a9e14982446825d Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Sat, 27 Aug 2016 20:57:14 +0300 Subject: [PATCH] Fix unitialized access --- pupy/packages/all/pupyutils/safepopen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pupy/packages/all/pupyutils/safepopen.py b/pupy/packages/all/pupyutils/safepopen.py index d0f32568..ea47238c 100644 --- a/pupy/packages/all/pupyutils/safepopen.py +++ b/pupy/packages/all/pupyutils/safepopen.py @@ -38,6 +38,7 @@ class SafePopen(object): self.returncode = None def execute(self, poll_delay=0.5): + returncode = None try: kwargs = self._popen_kwargs # Setup some required arguments