diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-01-13 23:50:30 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-01-13 23:50:30 +0100 |
commit | 89dbd1d1e5b17c03f1252eb734d0c1cd5b445a48 (patch) | |
tree | bacce7b30ec4ebb5ab5c715ceff714dacea2e512 /psutil/_common.py | |
parent | 94c37c17fa1d59e04edb2f5f79ec6a5814cffded (diff) | |
download | psutil-89dbd1d1e5b17c03f1252eb734d0c1cd5b445a48.tar.gz |
#734: fix unicode issues on FreeBSD
Diffstat (limited to 'psutil/_common.py')
-rw-r--r-- | psutil/_common.py | 4 |
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 = { |