Skip to content
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

Update raise stmt #360

Merged
merged 4 commits into from
Jun 27, 2017
Merged

Update raise stmt #360

merged 4 commits into from
Jun 27, 2017

Conversation

rahulporuri
Copy link
Contributor

No description provided.

chaco/plot.py Outdated
raise ValueError, "Don't know how to create PlotData for data" \
"of type " + str(type(data))
raise ValueError("Don't know how to create PlotData for data"
"of type {!s}".format(type(data)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably don't need the explicit !s specifier here.

chaco/plot.py Outdated
raise ValueError, "Don't know how to create PlotData for data" \
"of type " + str(type(data))
raise ValueError("Don't know how to create PlotData for data"
"of type {}".format(type(data)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we care about Python 2.6? I assume not, but we should probably make that explicit somewhere.

(If we do care about Python 2.6, this needs to be {0} rather than {}.)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're here, you could also fix the missing space between "data" and "of".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only test with 2.7 but I guess the README is where this information belongs best?

and add a missing space

	modified:   README.rst
	modified:   chaco/plot.py
README.rst Outdated
@@ -42,6 +42,7 @@ Features

Prerequisites
-------------
Chaco is only supported on Python 2.7.x and Python > 3.3.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Python >= 3.4 is more clear, or something like Python 3.4 and up?

@mdickinson
Copy link
Member

LGTM. @jvkersch?

@jvkersch
Copy link
Contributor

LGTM too. The Travis failures seem unrelated.

@rahulporuri
Copy link
Contributor Author

merging.

@rahulporuri rahulporuri merged commit 4a4c3b0 into master Jun 27, 2017
@rahulporuri rahulporuri deleted the fix/compat-raise-stmt branch June 27, 2017 10:18
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.

3 participants