From jjlee at codespeak.net Wed Apr 5 20:40:23 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Wed Apr 5 20:40:25 2006 Subject: [wwwsearch-commits] r25416 - wwwsearch/ClientCookie/trunk/ClientCookie Message-ID: <20060405184023.AF90A10235@code0.codespeak.net> Author: jjlee Date: Wed Apr 5 20:40:22 2006 New Revision: 25416 Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py Log: Fix unwarranted case assumption in Refresh header value Modified: wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py ============================================================================== --- wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py (original) +++ wwwsearch/ClientCookie/trunk/ClientCookie/_urllib2_support.py Wed Apr 5 20:40:22 2006 @@ -584,7 +584,7 @@ jj = string.find(newurl_spec, "=") if jj != -1: key, newurl = newurl_spec[:jj], newurl_spec[jj+1:] - if key.strip() != "url": + if key.strip().lower() != "url": debug("bad Refresh header: %r" % refresh) return response else: From jjlee at codespeak.net Thu Apr 6 00:30:52 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Thu Apr 6 00:30:53 2006 Subject: [wwwsearch-commits] r25427 - wwwsearch/ClientCookie/trunk Message-ID: <20060405223052.1833D1022D@code0.codespeak.net> Author: jjlee Date: Thu Apr 6 00:30:51 2006 New Revision: 25427 Modified: wwwsearch/ClientCookie/trunk/ (props changed) Log: Update to latest setuptools From jjlee at codespeak.net Thu Apr 6 00:34:24 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Thu Apr 6 00:34:24 2006 Subject: [wwwsearch-commits] r25428 - wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57 Message-ID: <20060405223424.35A031022D@code0.codespeak.net> Author: jjlee Date: Thu Apr 6 00:34:23 2006 New Revision: 25428 Added: wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57/ - copied from r25427, wwwsearch/ClientCookie/trunk/ Modified: wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57/setup.cfg Log: Tagged ClientCookie (trunk -r HEAD, from working copy) release 1.2.1-2006-04-05T22:03:57 Modified: wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57/setup.cfg ============================================================================== --- wwwsearch/ClientCookie/trunk/setup.cfg (original) +++ wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57/setup.cfg Thu Apr 6 00:34:23 2006 @@ -1,3 +0,0 @@ -[egg_info] -tag_build = .dev -tag_svn_revision = 1 From jjlee at codespeak.net Thu Apr 6 00:43:56 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Thu Apr 6 00:43:56 2006 Subject: [wwwsearch-commits] r25429 - wwwsearch/ClientCookie/common Message-ID: <20060405224356.3415B1022D@code0.codespeak.net> Author: jjlee Date: Thu Apr 6 00:43:55 2006 New Revision: 25429 Modified: wwwsearch/ClientCookie/common/ChangeLog Log: Update ChangeLog Modified: wwwsearch/ClientCookie/common/ChangeLog ============================================================================== --- wwwsearch/ClientCookie/common/ChangeLog (original) +++ wwwsearch/ClientCookie/common/ChangeLog Thu Apr 6 00:43:55 2006 @@ -1,6 +1,16 @@ This isn't really in proper GNU ChangeLog format, it just happens to look that way. +2006-04-23 John J Lee + * 1.2.1 release: + * Fix Refresh in case where the string "url" in the header value + is in upper-case. + * Don't do broken XHTML handling by default (need to review code + before switching this back on, e.g. should use a real XML parser + for first-try at parsing). HTTPEquivProcessor's + i_want_broken_xhtml_support constructor argument gives the old + behaviour. + 2006-03-23 John J Lee * 1.2.0 release: * Stop trying to record precise dates in changelog, since that's From jjlee at codespeak.net Thu Apr 6 01:12:34 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Thu Apr 6 01:12:39 2006 Subject: [wwwsearch-commits] r25430 - wwwsearch/ClientCookie/trunk/test Message-ID: <20060405231234.03BB810232@code0.codespeak.net> Author: jjlee Date: Thu Apr 6 01:12:32 2006 New Revision: 25430 Modified: wwwsearch/ClientCookie/trunk/test/test_headers.py wwwsearch/ClientCookie/trunk/test/test_urllib2.py Log: Silence one gaierror that has showed up in tests for ages on some machines (another is fixed in stdlib for 2.5); Fix old-Python backwards-compatibility test failure Modified: wwwsearch/ClientCookie/trunk/test/test_headers.py ============================================================================== --- wwwsearch/ClientCookie/trunk/test/test_headers.py (original) +++ wwwsearch/ClientCookie/trunk/test/test_headers.py Thu Apr 6 01:12:32 2006 @@ -2,6 +2,11 @@ from unittest import TestCase +try: True +except NameError: + True = 1 + False = 0 + class IsHtmlTests(TestCase): def test_is_html(self): from ClientCookie._HeadersUtil import is_html Modified: wwwsearch/ClientCookie/trunk/test/test_urllib2.py ============================================================================== --- wwwsearch/ClientCookie/trunk/test/test_urllib2.py (original) +++ wwwsearch/ClientCookie/trunk/test/test_urllib2.py Thu Apr 6 01:12:32 2006 @@ -370,12 +370,15 @@ TESTFN = "test.txt" urlpath = sanepathname2url(os.path.abspath(TESTFN)) towrite = "hello, world\n" + try: + fqdn = socket.gethostbyname(socket.gethostname()) + except socket.gaierror: + fqdn = "localhost" for url in [ "file://localhost%s" % urlpath, "file://%s" % urlpath, "file://%s%s" % (socket.gethostbyname('localhost'), urlpath), - "file://%s%s" % (socket.gethostbyname(socket.gethostname()), - urlpath), + "file://%s%s" % (fqdn, urlpath) ]: f = open(TESTFN, "wb") try: From jjlee at codespeak.net Thu Apr 6 01:13:44 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Thu Apr 6 01:13:45 2006 Subject: [wwwsearch-commits] r25431 - wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57 Message-ID: <20060405231344.9A33E10232@code0.codespeak.net> Author: jjlee Date: Thu Apr 6 01:13:43 2006 New Revision: 25431 Removed: wwwsearch/ClientCookie/tag/release/1.2.1-2006-04-05T22:03:57/ Log: Remove release tag (tests needed fixing) From jjlee at codespeak.net Sat Apr 8 15:28:44 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Sat Apr 8 15:28:45 2006 Subject: [wwwsearch-commits] r25545 - wwwsearch/pullparser/trunk Message-ID: <20060408132844.04CC61026E@code0.codespeak.net> Author: jjlee Date: Sat Apr 8 15:28:44 2006 New Revision: 25545 Modified: wwwsearch/pullparser/trunk/pullparser.py Log: Fix entitydefs documentation Modified: wwwsearch/pullparser/trunk/pullparser.py ============================================================================== --- wwwsearch/pullparser/trunk/pullparser.py (original) +++ wwwsearch/pullparser/trunk/pullparser.py Sat Apr 8 15:28:44 2006 @@ -283,10 +283,10 @@ .get_tag() first (unless you want an empty string returned when you next call .get_text()). - Entity references are translated using the entitydefs attribute (a - mapping from names to characters like that provided by the standard - module htmlentitydefs). Named entity references that are not in this - mapping are left unchanged. + Entity references are translated using the value of the entitydefs + constructor argument (a mapping from names to characters like that + provided by the standard module htmlentitydefs). Named entity + references that are not in this mapping are left unchanged. The textify attribute is used to translate opening tags into text: see the class docstring. From jjlee at codespeak.net Sat Apr 8 17:16:53 2006 From: jjlee at codespeak.net (jjlee@codespeak.net) Date: Sat Apr 8 17:16:55 2006 Subject: [wwwsearch-commits] r25551 - wwwsearch/pullparser/trunk Message-ID: <20060408151653.9D4BA1025C@code0.codespeak.net> Author: jjlee Date: Sat Apr 8 17:16:51 2006 New Revision: 25551 Modified: wwwsearch/pullparser/trunk/README.html.in wwwsearch/pullparser/trunk/pullparser.py wwwsearch/pullparser/trunk/setup.py Log: Update version to reflect backwards-incompatible .entitydefs change (change was made some time ago, after 0.0.7 released) Modified: wwwsearch/pullparser/trunk/README.html.in ============================================================================== --- wwwsearch/pullparser/trunk/README.html.in (original) +++ wwwsearch/pullparser/trunk/README.html.in Sat Apr 8 17:16:51 2006 @@ -71,7 +71,7 @@

Stable release.