Skip to content

Update raise stmt#360

Merged
rahulporuri merged 4 commits into
masterfrom
fix/compat-raise-stmt
Jun 27, 2017
Merged

Update raise stmt#360
rahulporuri merged 4 commits into
masterfrom
fix/compat-raise-stmt

Conversation

@rahulporuri
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread 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
Copy Markdown
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.

Comment thread 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Comment thread README.rst Outdated

Prerequisites
-------------
Chaco is only supported on Python 2.7.x and Python > 3.3.
Copy link
Copy Markdown
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
Copy Markdown
Member

LGTM. @jvkersch?

@jvkersch
Copy link
Copy Markdown
Contributor

LGTM too. The Travis failures seem unrelated.

@rahulporuri
Copy link
Copy Markdown
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