File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -891,15 +891,20 @@ def old_IDs(self):
891
891
A000045: Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
892
892
893
893
sage: f.old_IDs() # optional -- internet
894
- ('M0692', 'N0256'... )
894
+ ('M0692', 'N0256')
895
895
896
896
TESTS::
897
897
898
898
sage: s = oeis._imaginary_sequence()
899
899
sage: s.old_IDs()
900
900
('M9999', 'N9999')
901
901
"""
902
- return tuple (self ._field ('I' )[0 ].split (' ' ))
902
+ s = self ._field ('I' )[0 ]
903
+ # We remove all parts after '#'
904
+ s = s .split ('#' )[0 ].strip ()
905
+ if not s :
906
+ return ()
907
+ return tuple (s .split (' ' ))
903
908
904
909
def offsets (self ):
905
910
r"""
@@ -1804,7 +1809,6 @@ def show(self):
1804
1809
URL
1805
1810
https://oeis.org/A012345
1806
1811
<BLANKLINE>
1807
- ...
1808
1812
AUTHOR
1809
1813
Patrick Demichel (patrick.demichel(AT)hp.com)
1810
1814
<BLANKLINE>
You can’t perform that action at this time.
0 commit comments