aboutsummaryrefslogtreecommitdiffstats
path: root/src/charmem.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-11-03 19:55:52 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2023-11-03 19:55:52 +0200
commitabf6cbdecc8eb006a859205dee7500c2b70c0998 (patch)
tree4938cfaf270b6c83a77767de968845f704049205 /src/charmem.py
parenta3b677bac00060393cc66f1bb3b350413282a4ae (diff)
Fix macros, add string I/O helpers
Diffstat (limited to 'src/charmem.py')
-rw-r--r--src/charmem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charmem.py b/src/charmem.py
index 9b19864..551ba85 100644
--- a/src/charmem.py
+++ b/src/charmem.py
@@ -43,7 +43,7 @@ def string_to_byte(input_string: str):
# Check if the string contains only '0' or '1'
if not all(c in '01' for c in binary_string):
- raise ValueError("Input string must contain only spaces and '#' characters.")
+ raise ValueError("Input string must contain only spaces and '█' characters.")
# Convert the binary string to an unsigned integer byte
return int(binary_string[::-1], 2)