MCPcopy Index your code
hub / github.com/pyload/pyload / get_console_encoding

Function get_console_encoding

module/utils.py:64–76  ·  view source on GitHub ↗
(enc)

Source from the content-addressed store, hash-verified

62 fs_encode = fs_decode = lambda x: x # do nothing
63
64def get_console_encoding(enc):
65 if os.name == "nt":
66 if enc == "cp65001": # aka UTF-8
67 print "WARNING: Windows codepage 65001 is not supported."
68 enc = "cp850"
69
70 elif enc is None: #: piped
71 enc = "cp850"
72
73 else:
74 enc = "utf8"
75
76 return enc
77
78def compare_time(start, end):
79 start = map(int, start)

Callers 2

pyLoadCore.pyFile · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected