Skip to content

Commit

Permalink
Fix Python 2.7.10 Header Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Carroll committed May 28, 2015
1 parent 2afdbb3 commit 5e58f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/evernote/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _get_thrift_client(self, client_class, url):
http_client = THttpClient.THttpClient(url)
http_client.addHeaders(**{
'User-Agent': "%s / %s; Python / %s;"
% (self._user_agent_id, self._get_sdk_version(), sys.version)
% (self._user_agent_id, self._get_sdk_version(), sys.version.replace('\n',""))
})

thrift_protocol = TBinaryProtocol.TBinaryProtocol(http_client)
Expand Down

1 comment on commit 5e58f9f

@rdhyee
Copy link

@rdhyee rdhyee commented on 5e58f9f Jun 5, 2015

Choose a reason for hiding this comment

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

Thanks for this fix, @matthewayne

pip install --upgrade git+git://github.com/evernote/evernote-sdk-python.git

worked like a charm to get the update for me.

Please sign in to comment.