Skip to content

Commit 203aa13

Browse files
committed
further fixes
1 parent e181dbc commit 203aa13

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/sage/typeset/ascii_art.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ class AsciiArt(CharacterArt):
181181
pi*x
182182
e
183183
"""
184-
_string_type = str
185184

186185

187186
_ascii_art_factory = CharacterArtFactory(

src/sage/typeset/character_art.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def empty(cls):
103103
sage: from sage.typeset.ascii_art import AsciiArt
104104
sage: AsciiArt.empty()
105105
"""
106-
empty_string = cls._string_type()
107-
return cls([empty_string])
106+
return cls([''])
108107

109108
def __getitem__(self, key):
110109
r"""
@@ -167,7 +166,7 @@ def __format__(self, fmt):
167166
sage: format(unicode_art(M)) # needs sage.modules
168167
'\u239b1 2\u239e\n\u239d3 4\u23a0'
169168
"""
170-
return format(self._string_type(self), fmt)
169+
return format(str(self), fmt)
171170

172171
def get_baseline(self):
173172
r"""

src/sage/typeset/unicode_art.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class UnicodeArt(CharacterArt):
4949
π⋅x
5050
5151
"""
52-
_string_type = str
5352

5453

5554
_unicode_art_factory = CharacterArtFactory(

0 commit comments

Comments
 (0)