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

Changeset 1943

Show
Ignore:
Timestamp:
04/17/08 16:42:19
Author:
fumanchu
Message:

Might as well be explicit about open() modes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/800-error-handlers/cherrypy/wsgiserver/__init__.py

    r1937 r1943  
    14881488    def populate_ssl_environ(self): 
    14891489        """Create WSGI environ entries to be merged into each request.""" 
    1490         cert = open(self.ssl_certificate).read() 
     1490        cert = open(self.ssl_certificate, 'rb').read() 
    14911491        cert = crypto.load_certificate(crypto.FILETYPE_PEM, cert) 
    14921492        ssl_environ = { 

Hosted by WebFaction

Log in as guest/cpguest to create tickets