Changeset 632dd59


Ignore:
Timestamp:
Mar 4, 2010 3:16:47 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
f81aba7
Parents:
93c865a
Message:

More unicode intolerance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/util.py

    r93c865a r632dd59  
    6262            # reference and after the assignment it's a lambda.  So we assign
    6363            # to a temp.
    64             pwd = password
     64            pwd = str(password)
    6565            password =lambda *args: pwd
    6666
     67        # The calls to str below (and above) are because the underlying SSL
     68        # stuff is intolerant of unicode.
    6769        if password != None:
    68             self.load_cert(my_cert, callback=password)
     70            self.load_cert(str(my_cert), callback=password)
    6971        else:
    70             self.load_cert(my_cert)
     72            self.load_cert(str(my_cert))
    7173
    7274        # If no trusted certificates are specified, allow unknown CAs.
Note: See TracChangeset for help on using the changeset viewer.