From 3c812e73006ead17d06afed781b3527be4a8c1e6 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 26 Jul 2021 23:39:42 +0300
Subject: [PATCH] Compatibility with Python 3.6.

---
 mnpw/nagios.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mnpw/nagios.py b/mnpw/nagios.py
index a518d9b..3bde99a 100644
--- a/mnpw/nagios.py
+++ b/mnpw/nagios.py
@@ -69,10 +69,11 @@ class Check:
                     self.Command,
                 ]
                 + self.Arguments,
-                capture_output=True,
+                stdout=subprocess.PIPE,
+                stderr=subprocess.PIPE,
                 check=False,
-                text=True,
                 timeout=timeout,
+                universal_newlines=True,
             )
         except FileNotFoundError:
             raise RuntimeError(f"Command {self.Command} not found.")
-- 
GitLab