Skip to content

Commit aa87cc6

Browse files
authored
Merge pull request niklasf#225 from PedanticHacker/patch-2
Fix the chess/svg.py code examples
2 parents 0af02d8 + 9139cbb commit aa87cc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chess/svg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def piece(piece, size=None):
102102
>>> import chess
103103
>>> import chess.svg
104104
>>>
105-
>>> from IPython.core.display import SVG
105+
>>> from IPython.display import SVG
106106
>>>
107107
>>> SVG(chess.svg.piece(chess.Piece.from_symbol("R"))) # doctest: +SKIP
108108
@@ -135,7 +135,7 @@ def board(board=None, squares=None, flipped=False, coordinates=True, lastmove=No
135135
>>> import chess
136136
>>> import chess.svg
137137
>>>
138-
>>> from IPython.core.display import SVG
138+
>>> from IPython.display import SVG
139139
>>>
140140
>>> board = chess.Board("8/8/8/8/4N3/8/8/8 w - - 0 1")
141141
>>> squares = board.attacks(chess.E4)

0 commit comments

Comments
 (0)