From 7618de9683684811402f50b08ca3f3e979774e72 Mon Sep 17 00:00:00 2001
From: Dan Vinakovsky <dvinak@gmail.com>
Date: Mon, 12 Feb 2018 18:29:34 -0500
Subject: [PATCH] fix compatibility with python 2.6.x (#1216)

---
 psutil/_pswindows.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/psutil/_pswindows.py b/psutil/_pswindows.py
index b6c58c93..0eb4b14f 100644
--- a/psutil/_pswindows.py
+++ b/psutil/_pswindows.py
@@ -200,7 +200,7 @@ def py2_strencode(s):
         if isinstance(s, str):
             return s
         else:
-            return s.encode(ENCODING, errors=ENCODING_ERRS)
+            return s.encode(ENCODING, ENCODING_ERRS)
 
 
 # =====================================================================
-- 
2.39.0.windows.2

