Skip to content

Only call dirname on string-like directory names #677

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
Feb 26, 2012

Conversation

jkseppan
Copy link
Member

In issue 672 @gujax reports that the registry includes an entry where the value is numeric, not a string, and os.path.dirname crashes. This should avoid that problem, but I don't have a Windows system to test on.

@mdboom
Copy link
Member

mdboom commented Jan 17, 2012

I think a positive report from @gujax should be sufficient.

@WeatherGod
Copy link
Member

gujax did report that the fix worked, but was concerned that we are skipping useful data. Should we still go ahead with this patch? My vote is yes, but we should probably leave some comments in the code pointing out that there have been reports of non-string values coming back from the registry and may be an indicator of a bug elsewhere?

jdh2358 added a commit that referenced this pull request Feb 26, 2012
Only call dirname on string-like directory names
@jdh2358 jdh2358 merged commit 01627ce into matplotlib:v1.1.x Feb 26, 2012
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.

4 participants