File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def _option_format(arg):
197
197
198
198
199
199
def _deprecated_option_encoding (arg ):
200
- _api .warn_deprecated ("3.5" , "encoding" , obj_type = "option" )
200
+ _api .warn_deprecated ("3.5" , name = "encoding" , obj_type = "option" )
201
201
return directives .encoding (arg )
202
202
203
203
Original file line number Diff line number Diff line change @@ -120,9 +120,11 @@ Plot 14 uses ``include-source``:
120
120
121
121
# Only a comment
122
122
123
- Plot 15 uses an external file with the plot commands and a caption:
123
+ Plot 15 uses an external file with the plot commands and a caption (the
124
+ encoding is ignored and just verifies the deprecation is not broken):
124
125
125
126
.. plot :: range4.py
127
+ :encoding: utf-8
126
128
127
129
This is the caption for plot 15.
128
130
You can’t perform that action at this time.
0 commit comments