diff --git a/Client/Client.py b/Client/Client.py index d7fdcfa..a85835d 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -823,47 +823,3 @@ if __name__ == '__main__': response = server_request_workload(arguments) workload = check_workload_response(arguments, response) if workload: complete_workload(arguments, workload) - - -# >>> x = 'cutechess-linux' -# >>> y = 'cutechess-windows.exe' -# >>> -# >>> -# >>> with open(x) as fin: -# ... -# ... -# File "", line 3 -# -# ^ -# IndentationError: expected an indented block -# >>> -# >>> import hashlib -# >>> -# >>> -# >>> with open(x) as fin: -# ... content = fin.read().decode('utf-8') -# ... print(hashlib.sha256(content).hexdigest()) -# ... -# Traceback (most recent call last): -# File "", line 2, in -# File "C:\Python3\lib\encodings\cp1252.py", line 23, in decode -# return codecs.charmap_decode(input,self.errors,decoding_table)[0] -# UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 710: character maps to -# >>> -# >>> with open(x, 'rb') as fin: -# ... content = fin.read() -# ... print(hashlib.sha256(content).hexdigest()) -# ... -# 929ead50b90f5bd6a912d3cefbc0bbbe75cdc02a88b493100e2a5a5f8b47e012 -# >>> -# >>> with -# File "", line 1 -# with -# ^ -# SyntaxError: invalid syntax -# >>> -# >>> with open(y, 'rb') as fin: -# ... content = fin.read() -# ... print(hashlib.sha256(content).hexdigest()) -# ... -# 989995590abf19cb88fc23712eef1e61caa3edf5895151f184c7e5b0ca0c97e4