Changeset 2441
- Timestamp:
- 06/14/09 18:22:15
- Files:
-
- branches/python3/cherrypy/lib/sessions.py (modified) (1 diff)
- branches/python3/cherrypy/test/helper.py (modified) (1 diff)
- branches/python3/cherrypy/test/test_session.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/python3/cherrypy/lib/sessions.py
r2434 r2441 17 17 except ImportError: 18 18 from sha import new as sha 19 import sys20 19 import time 21 20 import threading branches/python3/cherrypy/test/helper.py
r2438 r2441 59 59 60 60 def skip(self, msg='skipped '): 61 sys.std out.write(msg)61 sys.stderr.write(msg) 62 62 63 63 def assertErrorPage(self, status, message=None, pattern=''): branches/python3/cherrypy/test/test_session.py
r2438 r2441 2 2 test.prefer_parent_path() 3 3 4 import http.client 4 import http.client import HTTPConnection, HTTPSConnection 5 5 import os 6 6 localDir = os.path.dirname(__file__) … … 228 228 def request(index): 229 229 if self.scheme == 'https': 230 c = http.client.HTTPSConnection('%s:%s' % (self.interface(), self.PORT))230 c = HTTPSConnection('%s:%s' % (self.interface(), self.PORT)) 231 231 else: 232 c = http.client.HTTPConnection('%s:%s' % (self.interface(), self.PORT))232 c = HTTPConnection('%s:%s' % (self.interface(), self.PORT)) 233 233 for i in range(request_count): 234 234 c.putrequest('GET', '/')

