Fixed #8574 -- Made Sitemap a new-style class
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c1bed37715
commit
660180df30
|
@ -33,7 +33,7 @@ def ping_google(sitemap_url=None, ping_url=PING_URL):
|
|||
params = urllib.urlencode({'sitemap':url})
|
||||
urllib.urlopen("%s?%s" % (ping_url, params))
|
||||
|
||||
class Sitemap:
|
||||
class Sitemap(object):
|
||||
# This limit is defined by Google. See the index documentation at
|
||||
# http://sitemaps.org/protocol.php#index.
|
||||
limit = 50000
|
||||
|
|
Loading…
Reference in New Issue