[Checkins] SVN: zope.testbrowser/branches/jinty-webtest3/src/zope/testbrowser/wsgi.py Remove cargo-culted code that is most probably not required with web test and causes no test failures (neither in grok)

Brian Sutherland jinty at web.de
Mon Mar 7 08:04:02 EST 2011


Log message for revision 120788:
  Remove cargo-culted code that is most probably not required with web test and causes no test failures (neither in grok)

Changed:
  U   zope.testbrowser/branches/jinty-webtest3/src/zope/testbrowser/wsgi.py

-=-
Modified: zope.testbrowser/branches/jinty-webtest3/src/zope/testbrowser/wsgi.py
===================================================================
--- zope.testbrowser/branches/jinty-webtest3/src/zope/testbrowser/wsgi.py	2011-03-07 11:22:49 UTC (rev 120787)
+++ zope.testbrowser/branches/jinty-webtest3/src/zope/testbrowser/wsgi.py	2011-03-07 13:04:02 UTC (rev 120788)
@@ -51,11 +51,6 @@
     def set_debuglevel(self, level):
         pass
 
-    def _quote(self, url):
-        # XXX: is this necessary with WebTest? Was cargeo-culted from the 
-        # Zope Publisher Connection
-        return url.replace(' ', '%20')
-
     def request(self, method, url, body=None, headers=None):
         """Send a request to the publisher.
 
@@ -67,8 +62,6 @@
         if url == '':
             url = '/'
 
-        url = self._quote(url)
-
         # Extract the handle_error option header
         if sys.version_info >= (2,5):
             handle_errors_key = 'X-Zope-Handle-Errors'



More information about the checkins mailing list