Skip to content

Commit e81f572

Browse files
committed
>> fixed doctests of _to_keys() in the group.py module
1 parent 482efbf commit e81f572

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

larray/core/group.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,11 @@ def _to_keys(value, stack_depth=1):
601601
>>> _to_keys('P01;P02,P03;:')
602602
('P01', ['P02', 'P03'], slice(None, None, None))
603603
604-
# evaluated variables do not work
605-
# >>> ext = 'P03'
606-
# >>> to_keys('P01,P02,{ext}')
607-
# ['P01', 'P02', 'P03']
608-
# >>> to_keys('P01;P02;{ext}')
609-
# ('P01', 'P02', 'P03')
604+
>>> ext = 'P03'
605+
>>> _to_keys('P01,P02,{ext}')
606+
['P01', 'P02', 'P03']
607+
>>> _to_keys('P01;P02;{ext}')
608+
('P01', 'P02', 'P03')
610609
611610
>>> _to_keys('age[10:19] >> teens ; year.i[-1]')
612611
(age[10:19] >> 'teens', year.i[-1])

0 commit comments

Comments
 (0)