Commits

Peter Sanchez committed edfb6bf

Light cleanup

Comments (0)

Files changed (1)

djpubsubhubbub/models.py

 import urllib2
 import feedparser
+
+from hashlib import sha1
 from urllib import urlencode, quote
 from datetime import datetime, timedelta
-from hashlib import sha1
 
 from django.db import models
 from django.conf import settings
             if e.code == 302:
                return True
         return False
-    
+
     def retrieve(self, topic, hub=None, debug=False):
         config = Config()
         if hub is None:
 
         if data:
             encoded_data = urlencode(list(data_generator()))
-            #headers.update({'Content-Length': (len(encoded_data) + 2)})
             if debug:
                 print('Sending:\n{0}\n{1}\n{2}\n\n'.format(
                     url,
 
     class Meta:
         ordering = ('id',)
-        #unique_together = (('hub', 'topic'),)
 
     def __unicode__(self):
         if self.verified: