diff options
author | seberg <sebastian@sipsolutions.net> | 2013-02-27 14:38:46 -0800 |
---|---|---|
committer | seberg <sebastian@sipsolutions.net> | 2013-02-27 14:38:46 -0800 |
commit | 22decf9edf44617056055434093b621602a9f5f8 (patch) | |
tree | a9bb7b1628afec482806fafa9fe2ca415186d6e0 /doc/sphinxext/plot_directive.py | |
parent | e84885aa39057235a8cb53558f05a07cb6da4965 (diff) | |
parent | 046d0575d0c052c9012221f36c3a2d0ccf34abb5 (diff) | |
download | numpy-22decf9edf44617056055434093b621602a9f5f8.tar.gz |
Merge pull request #3027 from charris/2to3-remove-has_key-update
2to3: Remove `has_key` use that was missed.
Diffstat (limited to 'doc/sphinxext/plot_directive.py')
-rw-r--r-- | doc/sphinxext/plot_directive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/sphinxext/plot_directive.py b/doc/sphinxext/plot_directive.py index fad7a76d7..a91b436a7 100644 --- a/doc/sphinxext/plot_directive.py +++ b/doc/sphinxext/plot_directive.py @@ -36,7 +36,7 @@ The ``plot`` directive supports the options include-source : bool Whether to display the source code. Default can be changed in conf.py - + and the ``image`` directive options ``alt``, ``height``, ``width``, ``scale``, ``align``, ``class``. @@ -257,7 +257,7 @@ def run(arguments, content, options, state_machine, state, lineno): # is it in doctest format? is_doctest = contains_doctest(code) - if options.has_key('format'): + if 'format' in options: if options['format'] == 'python': is_doctest = False else: |