httpie / http-prompt

An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
https://http-prompt.com
MIT License
8.96k stars 326 forks source link

Remove extra argument from `six.u` function call #123

Closed delirious-lettuce closed 7 years ago

delirious-lettuce commented 7 years ago

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 commented 7 years ago

Nice catch, thanks!