Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2441

Show
Ignore:
Timestamp:
06/14/09 18:22:15
Author:
fumanchu
Message:

python3: a couple tweaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/python3/cherrypy/lib/sessions.py

    r2434 r2441  
    1717except ImportError: 
    1818    from sha import new as sha 
    19 import sys 
    2019import time 
    2120import threading 
  • branches/python3/cherrypy/test/helper.py

    r2438 r2441  
    5959     
    6060    def skip(self, msg='skipped '): 
    61         sys.stdout.write(msg) 
     61        sys.stderr.write(msg) 
    6262     
    6363    def assertErrorPage(self, status, message=None, pattern=''): 
  • branches/python3/cherrypy/test/test_session.py

    r2438 r2441  
    22test.prefer_parent_path() 
    33 
    4 import http.client 
     4import http.client import HTTPConnection, HTTPSConnection 
    55import os 
    66localDir = os.path.dirname(__file__) 
     
    228228        def request(index): 
    229229            if self.scheme == 'https': 
    230                 c = http.client.HTTPSConnection('%s:%s' % (self.interface(), self.PORT)) 
     230                c = HTTPSConnection('%s:%s' % (self.interface(), self.PORT)) 
    231231            else: 
    232                 c = http.client.HTTPConnection('%s:%s' % (self.interface(), self.PORT)) 
     232                c = HTTPConnection('%s:%s' % (self.interface(), self.PORT)) 
    233233            for i in range(request_count): 
    234234                c.putrequest('GET', '/') 

Hosted by WebFaction

Log in as guest/cpguest to create tickets