Use locale encoding to decode subprocess output // Resolve #2890

This commit is contained in:
Ivan Kravets committed 2019-10-30 20:43:37 +02:00
1 parent 7b6bab7f4e
commit 6d69c25a2f
2 files changed
+14 -2

No files matched your search

+5
View File
@@ -17,6 +17,7 @@
import inspect
import json
import locale
import os
import re
import sys
@@ -30,6 +31,10 @@ def get_filesystem_encoding():
return sys.getfilesystemencoding() or sys.getdefaultencoding()
def get_locale_encoding():
return locale.getdefaultlocale()[1]
def get_class_attributes(cls):
attributes = inspect.getmembers(cls, lambda a: not (inspect.isroutine(a)))
return {