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

itsdb.get_data_specifier() now works with unicode args #165

Merged
merged 1 commit into from
Aug 21, 2018
Merged

Conversation

mcmillanmajora
Copy link
Contributor

Fixes #164

Copy link
Member

@goodmami goodmami left a comment

Choose a reason for hiding this comment

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

A minor change would make the code more readable. Otherwise this is good.

@@ -698,7 +698,7 @@ def _split_cols(colstring):
if not colstring:
return None
colstring = colstring.lstrip(':')
return list(map(str.strip, colstring.split('@')))
return list(map(lambda unistr: unistr.strip(), colstring.split('@')))
Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is the fix I was thinking of, but a list comprehension might make it a bit clearer:

   return [col.strip() for col in colstring.split('@')]

@goodmami goodmami merged commit a090670 into develop Aug 21, 2018
@goodmami
Copy link
Member

I went ahead and merged in your change and fixed the thing I requested, and also added a unit test.

Thanks, @mcmillanmajora! We're all set here, so you can delete the branch when you're ready.

@mcmillanmajora mcmillanmajora deleted the fixes-164 branch August 22, 2018 17:11
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.

2 participants