Skip to content

Commit

Permalink
no more errors in pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rikojacob committed Jan 27, 2018
1 parent 7829f5e commit 9f6e657
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion algs4/stdlib/stddraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
_DEFAULT_YMAX = 1.0
_DEFAULT_CANVAS_SIZE = 512
_DEFAULT_PEN_RADIUS = .005 # Maybe change this to 0.0 in the future.
_DEFAULT_PEN_COLOR = algs4.stdlib.color.BLACK
_DEFAULT_PEN_COLOR = BLACK

_DEFAULT_FONT_FAMILY = 'Helvetica'
_DEFAULT_FONT_SIZE = 12
Expand Down
19 changes: 17 additions & 2 deletions create_html_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,23 @@ cd $DEST
for f in $FILES
do
p=${f#./}
# echo $p
pydoc3 -w algs4.`echo ${p%.py} | tr / .` 2>&1 | grep -v '^wrote'
b=${p%.py}
if [ ! $b == ${b%datafiles} ]
then
continue
fi
if [ ! $b == ${b#test} ]
then
continue
fi
arg=algs4.`echo ${b} | tr / .`
res=`pydoc3 -w $arg | grep -v '^wrote'`
if [ ! -z "$res" ]
then
echo $arg $res
fi

# pydoc3 -w algs4.`echo ${b} | tr / .` > /dev/null
done

cd ../..
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="algs4_python",
version="0.2.0.15",
version="0.2.0.16",
packages= [
'algs4.fundamentals',
'algs4.sorting',
Expand Down

0 comments on commit 9f6e657

Please sign in to comment.