diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2023-06-17 20:41:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 20:41:09 -0500 |
commit | 6a57cf080a66315d5e8de48f0f0f2b4a441890c3 (patch) | |
tree | a7a248ebbfb5abf3117b5638c11d885e56f4c533 /dialoguer | |
parent | 66f7f3d839b1b2fb7afae2269f425c348fdd3498 (diff) |
Update binary_conversion.py
removed __main__ section
Diffstat (limited to 'dialoguer')
-rw-r--r-- | dialoguer/binary_conversion.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/dialoguer/binary_conversion.py b/dialoguer/binary_conversion.py index a770812..dba0ea9 100644 --- a/dialoguer/binary_conversion.py +++ b/dialoguer/binary_conversion.py @@ -58,13 +58,3 @@ def convert_from_binary(bin_data, cls_type): data = int(data, 2) return data - -if __name__ == '__main__': - print(convert_to_binary(3)) - print(convert_to_binary('3')) - - int_3 = b'\x00\x00\x00\x00\x00\x00\x01\x01' - str_3 = b'\x00\x00\x01\x01\x00\x00\x01\x01' - - print(convert_from_binary(int_3, cls_int)) - print(convert_from_binary(str_3, cls_str))
\ No newline at end of file |