Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fixing doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMathas committed Jul 7, 2016
1 parent 257b283 commit 9778f97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/combinat/root_system/type_A_infinity.py
Expand Up @@ -118,14 +118,14 @@ def ascii_art(self, label=lambda i: i, node=None):
EXAMPLES::
sage: print(CartanType(['A', oo]).ascii_art())
...---O---O---O---O---O---O---O---...
-3 -2 -1 0 1 2 3
..---O---O---O---O---O---O---O---..
-3 -2 -1 0 1 2 3
"""
if node is None:
node = self._ascii_art_node
ret = '...---'+'---'.join(node(label(i)) for i in range(7))+'---...\n'
ret += ' '+''.join("{:4}".format(label(i)) for i in range(-3,4))
ret = '..---'+'---'.join(node(label(i)) for i in range(7))+'---..\n'
ret += ' '+''.join("{:4}".format(label(i)) for i in range(-3,4))
return ret

def dynkin_diagram(self):
Expand Down

0 comments on commit 9778f97

Please sign in to comment.