Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0532eb

Browse files
committed
Removed commented code
1 parent 41f46a9 commit c0532eb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -659,19 +659,16 @@ def run(arguments, content, options, state_machine, state, lineno):
659659
source_rel_dir)
660660
# get rid of .. in paths, also changes pathsep
661661
# see note in Python docs for warning about symbolic links on Windows.
662-
# need this if you use cbook.mkdirs
663-
# also need it to compare source and dest paths at end
662+
# need to compare source and dest paths at end
664663
build_dir = os.path.normpath(build_dir)
665664

666665
if not os.path.exists(build_dir):
667-
# cbook.mkdirs(build_dir)
668666
os.makedirs(build_dir)
669667

670668
# output_dir: final location in the builder's directory
671669
dest_dir = os.path.abspath(os.path.join(setup.app.builder.outdir,
672670
source_rel_dir))
673671
if not os.path.exists(dest_dir):
674-
# cbook.mkdirs(dest_dir)
675672
os.makedirs(dest_dir) # no problem here for me, but just use built-ins
676673

677674
# how to link to files from the RST file

0 commit comments

Comments
 (0)