diff options
author | ianb <devnull@localhost> | 2007-12-17 23:21:05 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-12-17 23:21:05 +0000 |
commit | c503a3ff023b96ce0d1e7b39b900789d7f73b3bc (patch) | |
tree | a26cb64668007427c27f1d6d39298bd8fdf551ca /paste/fixture.py | |
parent | de72221d6fd4fd8d9f69cd884cdb1a580b0f86b8 (diff) | |
download | paste-c503a3ff023b96ce0d1e7b39b900789d7f73b3bc.tar.gz |
use basecookie instead of simplecookie
Diffstat (limited to 'paste/fixture.py')
-rw-r--r-- | paste/fixture.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index aeb8748..25d0c07 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -21,7 +21,7 @@ import shutil import webbrowser import smtplib import shlex -from Cookie import SimpleCookie +from Cookie import BaseCookie try: from cStringIO import StringIO except ImportError: @@ -367,7 +367,7 @@ class TestApp(object): self.pre_request_hook(self) __tracebackhide__ = True if self.cookies: - c = SimpleCookie() + c = BaseCookie() for name, value in self.cookies.items(): c[name] = value req.environ['HTTP_COOKIE'] = str(c).split(': ', 1)[1] @@ -404,7 +404,7 @@ class TestApp(object): self._check_errors(res) res.cookies_set = {} for header in res.all_headers('set-cookie'): - c = SimpleCookie(header) + c = BaseCookie(header) for key, morsel in c.items(): self.cookies[key] = morsel.value res.cookies_set[key] = morsel.value |