~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to tsafe.py

  • Committer: Jean-Paul Calderone
  • Date: 2008-10-19 15:35:40 UTC
  • Revision ID: exarkun@divmod.com-20081019153540-mrjyxu8ogo92cns8
undeprecate tsafe, since Connection still isn't all that awesome when used in multiple threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
class Connection:
10
10
    def __init__(self, *args):
11
 
        import warnings
12
 
        warnings.warn(
13
 
            "OpenSSL.SSL.Connection is thread-safe.  "
14
 
            "OpenSSL.tsafe.Connection is no longer necessary.",
15
 
            stacklevel=2)
16
11
        self._ssl_conn = apply(_ssl.Connection, args)
17
12
        self._lock = _RLock()
18
13