Commit c7b9c9e7 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Encode parameters using percent-encoding for spaces.

parent 748c4e0f
......@@ -6,13 +6,12 @@ import httplib
from socket import timeout
from threading import Thread
from time import sleep
import urllib
from tweepy.models import Status
from tweepy.api import API
from tweepy.error import TweepError
from tweepy.utils import import_simplejson
from tweepy.utils import import_simplejson, urlencode_noplus
json = import_simplejson()
......@@ -220,7 +219,7 @@ class Stream(object):
self.parameters['locations'] = ','.join(['%.2f' % l for l in locations])
if count:
self.parameters['count'] = count
self.body = urllib.urlencode(self.parameters)
self.body = urlencode_noplus(self.parameters)
self.parameters['delimited'] = 'length'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment