File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
26
* Fix a bug where ` basilisp.lang.seq.LazySeq ` instances were not thread-safe (#934 )
27
27
* Fix a bug where Seqs wrapping Python Iterable instances were not thread-safe (#936 )
28
28
* Fix several bugs where code was being executed from a string with interpolated variables, which could've allowed for code (#938 )
29
+ * Fix a bug where record types and data readers whose fully qualified name started with a "b" could not be read (#947 )
29
30
30
31
### Other
31
32
* Add several sections to Concepts documentation module (#666 )
Original file line number Diff line number Diff line change @@ -1547,12 +1547,12 @@ def _read_reader_macro(ctx: ReaderContext) -> LispReaderForm: # noqa: MC0001
1547
1547
raise ctx .syntax_error (e .message ).with_traceback (e .__traceback__ ) from None
1548
1548
elif char == "#" :
1549
1549
return _read_numeric_constant (ctx )
1550
- elif char == "b" :
1551
- ctx .reader .advance ()
1552
- return _read_byte_str (ctx )
1553
1550
elif ns_name_chars .match (char ):
1554
1551
s = _read_sym (ctx )
1555
1552
assert isinstance (s , sym .Symbol )
1553
+ if s .ns is None and s .name == "b" :
1554
+ return _read_byte_str (ctx )
1555
+
1556
1556
v = _read_next_consuming_comment (ctx )
1557
1557
if s in ctx .data_readers :
1558
1558
f = ctx .data_readers [s ]
You can’t perform that action at this time.
0 commit comments