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

Remove extra argument from six.u function call #123

Merged
merged 1 commit into from
Jul 31, 2017
Merged

Remove extra argument from six.u function call #123

merged 1 commit into from
Jul 31, 2017

Conversation

delirious-lettuce
Copy link
Contributor

It looks like six.u only takes one argument but it was being called with two.

text = six.u(text, 'utf-8')

six.u(text)

>>> import six
>>> text = 'test_str'
>>> six.u(text)
'test_str'
>>> six.u(text, 'utf-8')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: u() takes 1 positional argument but 2 were given

@eliangcs eliangcs merged commit ac9fb08 into httpie:master Jul 31, 2017
@eliangcs
Copy link
Contributor

Nice catch, thanks!

@delirious-lettuce delirious-lettuce deleted the remove_extra_arg branch July 31, 2017 16:50
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