Skip to content

Commit

Permalink
Use rmtree, instead of removedirs
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw committed Jul 2, 2015
1 parent cb21653 commit 0ef58b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyspark/mllib/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,9 @@ class Word2Vec(object):
>>> sameModel = Word2VecModel.load(sc, path)
>>> model.transform("a") == sameModel.transform("a")
True
>>> from shutil import rmtree
>>> try:
... os.removedirs(path)
... rmtree(path)
... except OSError:
... pass
"""
Expand Down

0 comments on commit 0ef58b6

Please sign in to comment.