Skip to content

Commit

Permalink
ClientCookie is not included in mechanize
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-york committed Jun 21, 2006
1 parent de54fec commit 289fd9a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
6 changes: 6 additions & 0 deletions DEPENDENCIES.cfg
@@ -0,0 +1,6 @@
ClientForm
mechanize
pullparser

zope.interface
# zope.app # This is a soft-dependence
1 change: 0 additions & 1 deletion testing.py
Expand Up @@ -22,7 +22,6 @@
from cStringIO import StringIO

import mechanize
import ClientCookie

import transaction
from zope.testbrowser import browser
Expand Down
15 changes: 7 additions & 8 deletions tests.py
Expand Up @@ -23,7 +23,6 @@
from cStringIO import StringIO

import mechanize
import ClientCookie

from zope.testbrowser import browser
from zope.testing import renormalizing, doctest
Expand Down Expand Up @@ -128,18 +127,18 @@ class FauxMechanizeBrowser(mechanize.Browser):
# scheme handlers
"http": FauxHTTPHandler,

"_http_error": ClientCookie.HTTPErrorProcessor,
"_http_request_upgrade": ClientCookie.HTTPRequestUpgradeProcessor,
"_http_error": mechanize.HTTPErrorProcessor,
"_http_request_upgrade": mechanize.HTTPRequestUpgradeProcessor,
"_http_default_error": urllib2.HTTPDefaultErrorHandler,

# feature handlers
"_authen": urllib2.HTTPBasicAuthHandler,
"_redirect": ClientCookie.HTTPRedirectHandler,
"_cookies": ClientCookie.HTTPCookieProcessor,
"_refresh": ClientCookie.HTTPRefreshProcessor,
"_redirect": mechanize.HTTPRedirectHandler,
"_cookies": mechanize.HTTPCookieProcessor,
"_refresh": mechanize.HTTPRefreshProcessor,
"_referer": mechanize.Browser.handler_classes['_referer'],
"_equiv": ClientCookie.HTTPEquivProcessor,
"_seek": ClientCookie.SeekableProcessor,
"_equiv": mechanize.HTTPEquivProcessor,
"_seek": mechanize.SeekableProcessor,
}

default_schemes = ["http"]
Expand Down

0 comments on commit 289fd9a

Please sign in to comment.