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

tickets/dm-2095 #1

Merged
merged 6 commits into from Mar 4, 2015
Merged

tickets/dm-2095 #1

merged 6 commits into from Mar 4, 2015

Conversation

andy-slac
Copy link

Reviewing DM-2095

for row in rows:
for c in row:
if isinstance(c, int) or isinstance(c, float) or isinstance(c, long):
c = str(c)
Copy link
Author

Choose a reason for hiding this comment

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

Is this really needed? "%s" format implicitly does str().
isinstance(c, int) or isinstance(c, float) or isinstance(c, long) can be shortened to isinstance(c, (int, float, long))

@jbecla jbecla merged commit 922281b into master Mar 4, 2015
@ktlim ktlim deleted the tickets/DM-2095 branch August 25, 2018 06:44
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.

None yet

2 participants