-
Notifications
You must be signed in to change notification settings - Fork 99
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
Update raise stmt #360
Conversation
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))) |
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.
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))) |
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.
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 {}
.)
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.
While you're here, you could also fix the missing space between "data" and "of".
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.
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. |
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.
Maybe Python >= 3.4
is more clear, or something like Python 3.4 and up
?
LGTM. @jvkersch? |
LGTM too. The Travis failures seem unrelated. |
merging. |
No description provided.