MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / getfilesystemencoding

Function getfilesystemencoding

_pydev_bundle/_pydev_filesystem_encoding.py:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def getfilesystemencoding():
32 try:
33 ret = __getfilesystemencoding()
34
35 # Check if the encoding is actually there to be used!
36 if hasattr("", "encode"):
37 "".encode(ret)
38 if hasattr("", "decode"):
39 "".decode(ret)
40
41 return ret
42 except:
43 return "utf-8"

Calls 2

__getfilesystemencodingFunction · 0.70
decodeMethod · 0.45

Tested by

no test coverage detected