Skip to content

CLN: Improve Exceptions in core/common, io/excel and core/format #4721

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

Merged
merged 1 commit into from
Sep 2, 2013

Conversation

jtratner
Copy link
Contributor

@jtratner jtratner commented Sep 1, 2013

Related to #3954.

Cleanups to Exceptions in core/common, io/excel, core/format. A few places I added # pragma: no cover, because it looked like the code was generally unreachable. A few cleanups in tests/test_common and better error message in _mut_exclusive (which needs to be used in Panel.reindex later on).

Specific places to look at (you can also grep for # pragma: no cover in the diff):

  • core/common - lines 860 and 1162
  • core/format - lines 359 and 823
  • io/excel - lines 73, 382

@jreback
Copy link
Contributor

jreback commented Sep 1, 2013

looks fine

* more changes to bare exceptions
* fixup _mut_exclusive to be more expressive
* change interpolate_2d and _maybe_upcast_putmask to assertion errors
  (with pragmas) Potentially need to check whether these are actually
  unreachable in normal code...
* CLN: Add coverage pragmas to already guarded asserts in CSVFormatter
* CLN: io/excel Exceptions - small changes (mostly pragmas and asserts)
jtratner added a commit that referenced this pull request Sep 2, 2013
CLN: Improve Exceptions in core/common, io/excel and core/format
@jtratner jtratner merged commit be2a65c into pandas-dev:master Sep 2, 2013
@jtratner jtratner deleted the change-bare-exceptions-pt-2 branch September 2, 2013 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants