@@ 1,6 1,6 @@
import urllib2
import feedparser
-from urllib import urlencode
+from urllib import urlencode, quote
from datetime import datetime, timedelta
from hashlib import sha1
@@ 87,7 87,7 @@ class SubscriptionManager(models.Manager
try:
response = self._send_request(
- '{0}?hub.mode=status&hub.topic={1}'.format(hub, urlencode(topic)),
+ '{0}?hub.mode=status&hub.topic={1}'.format(hub, quote(topic)),
{},
headers,
debug,
@@ 104,7 104,7 @@ class SubscriptionManager(models.Manager
headers = config.get_extra_hub_headers(topic, hub)
response = self._send_request(
- '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, urlencode(topic)),
+ '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, quote(topic)),
{},
headers,
debug,