Ticket #1970: trac-1970-notebook-gnutls.2.patch

File trac-1970-notebook-gnutls.2.patch, 990 bytes (added by malb, 5 years ago)

updated patch use this instead

  • sage/server/notebook/run_notebook.py

    # HG changeset patch
    # User Martin Albrecht <malb@informatik.uni-bremen.de>
    # Date 1201622680 0
    # Node ID fc8f0d116862536ca397f84ed38e274e74d83ab3
    # Parent  7731814c621e208ce158c8b965938bb5b099825b
    c-1970 -- notebook -- gnutls should not be needed if you're running the notebook insecurely, so don't require it
    
    diff -r 7731814c621e -r fc8f0d116862 sage/server/notebook/run_notebook.py
    a b signal.signal(signal.SIGINT, my_sigint) 
    181181signal.signal(signal.SIGINT, my_sigint) 
    182182 
    183183## Disable client-side certificate request for gnutls 
    184 import gnutls.connection 
    185 gnutls.connection.CERT_REQUEST = 0 
     184try: 
     185    import gnutls.connection 
     186    gnutls.connection.CERT_REQUEST = 0 
     187except OSError: 
     188    print "Note: GNUTLS not available."  
    186189 
    187190## Authentication framework (ported from Knooboo) 
    188191from twisted.web2 import log, server, channel