AbdulMajeed776 commited on
Commit
a23383a
·
verified ·
1 Parent(s): 6103b0d

Update binary_utils.py

Browse files
Files changed (1) hide show
  1. binary_utils.py +0 -1
binary_utils.py CHANGED
@@ -1,5 +1,4 @@
1
  def binary_to_text(binary_data):
2
- # Converts binary (e.g., 0s and 1s) into ASCII text
3
  try:
4
  n = int(binary_data, 2)
5
  return n.to_bytes((n.bit_length() + 7) // 8, 'big').decode()
 
1
  def binary_to_text(binary_data):
 
2
  try:
3
  n = int(binary_data, 2)
4
  return n.to_bytes((n.bit_length() + 7) // 8, 'big').decode()