-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Ensure incomplete stata files are deleted #24319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Ensure incomplete stata files are deleted #24319
Conversation
Hello @bashtage! Thanks for updating the PR.
Comment last updated on December 18, 2018 at 14:21 Hours UTC |
00ab182
to
71b1a7f
Compare
xref #23573 |
71b1a7f
to
926a92c
Compare
Codecov Report
@@ Coverage Diff @@
## master #24319 +/- ##
=======================================
Coverage 92.28% 92.28%
=======================================
Files 162 162
Lines 51831 51831
=======================================
Hits 47833 47833
Misses 3998 3998
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24319 +/- ##
=======================================
Coverage 92.28% 92.28%
=======================================
Files 162 162
Lines 51835 51835
=======================================
Hits 47835 47835
Misses 4000 4000
Continue to review full report at Codecov.
|
0c34444
to
60f49a1
Compare
pandas/io/stata.py
Outdated
@@ -503,6 +504,10 @@ class InvalidColumnName(Warning): | |||
""" | |||
|
|||
|
|||
class IOWarning(Warning): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't make a new warning, use UserWarning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. I wanted ResourceWarning but not available in 2.7. Ready for 2.7 to be retired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, use pandas.compat.ResourceWarning
it is defined
5fc4e07
to
6ab4aec
Compare
Attempt to delete failed writes and warn if not able to delete
6ab4aec
to
6b3f841
Compare
@jreback This is ready now. |
thanks @bashtage |
Attempt to delete failed writes and warn if not able to delete
git diff upstream/master -u -- "*.py" | flake8 --diff