From 0768aa43aa2c91393d3199b1616bfb2f791232e1 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 23 Jul 2012 19:34:21 -0400 Subject: [PATCH] A couple of fixes. --- toolserver/cookies.py | 4 ++-- toolserver/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toolserver/cookies.py b/toolserver/cookies.py index ba7e1e1..18e0bda 100644 --- a/toolserver/cookies.py +++ b/toolserver/cookies.py @@ -9,9 +9,9 @@ class _CookieManager(BaseCookie): def __init__(self, environ): self._path = path.split(environ["PATH_INFO"])[0] try: - self.load(environ["HTTP_COOKIE"]) + super(_CookieManager, self).__init__(environ["HTTP_COOKIE"]) except AttributeError: - pass + super(_CookieManager, self).__init__() def value_decode(self, value): try: diff --git a/toolserver/settings.py b/toolserver/settings.py index b86e458..0ef7a6c 100644 --- a/toolserver/settings.py +++ b/toolserver/settings.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from ..cookies import parse_cookies, set_cookie +from ..cookies import parse_cookies, set_cookie, delete_cookie from ..misc import get_bot, Query from ..sites import get_sites