summaryrefslogtreecommitdiff
path: root/psutil/_common.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-01-13 23:50:30 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-01-13 23:50:30 +0100
commit89dbd1d1e5b17c03f1252eb734d0c1cd5b445a48 (patch)
treebacce7b30ec4ebb5ab5c715ceff714dacea2e512 /psutil/_common.py
parent94c37c17fa1d59e04edb2f5f79ec6a5814cffded (diff)
downloadpsutil-89dbd1d1e5b17c03f1252eb734d0c1cd5b445a48.tar.gz
#734: fix unicode issues on FreeBSD
Diffstat (limited to 'psutil/_common.py')
-rw-r--r--psutil/_common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/psutil/_common.py b/psutil/_common.py
index 3ff1cb88..c174fdef 100644
--- a/psutil/_common.py
+++ b/psutil/_common.py
@@ -193,6 +193,10 @@ def socktype_to_enum(num):
return num
+def get_encoding_errors_handler():
+ return sys.modules['psutil'].ENCODING_ERRORS_HANDLER
+
+
# --- Process.connections() 'kind' parameter mapping
conn_tmap = {