X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=scripts%2Funpickle.py;h=a3c274c8f593e34750be07905031bc6628fba7f9;hb=c6977a7e7f7b44e514b462067b8c7cb5b9040b75;hp=efb860804389ad7e5ccfae0a89171673c7bc1798;hpb=447576da195e098d54c8e1279f7bb3ff1b5f2d49;p=apitrace diff --git a/scripts/unpickle.py b/scripts/unpickle.py index efb8608..a3c274c 100755 --- a/scripts/unpickle.py +++ b/scripts/unpickle.py @@ -52,6 +52,15 @@ def main(): if args: optparser.error('unexpected arguments') + # Change stdin to binary mode + try: + import msvcrt + except ImportError: + pass + else: + import os + msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) + calls = 0 startTime = time.time() while True: