(enc)
| 62 | fs_encode = fs_decode = lambda x: x # do nothing |
| 63 | |
| 64 | def 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 | |
| 78 | def compare_time(start, end): |
| 79 | start = map(int, start) |
no outgoing calls
no test coverage detected