Skip to content

Commit 3430bab

Browse files
committed
fix for octet as well
1 parent bb65193 commit 3430bab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

quantities/registry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def __getitem__(self, string):
2121
all_builtins = dir(builtins)
2222
# because we have kilobytes, other bytes we have to remove bytes
2323
all_builtins.remove("bytes")
24+
# have to deal with octet as well
25+
all_builtins.remove("oct")
2426
for builtin in all_builtins:
2527
if builtin in string:
2628
raise RuntimeError(f"String parsing error for {string}. Enter a string accepted by quantities")

0 commit comments

Comments
 (0)