Merge lp:~wiqd/kali/ssl-support into lp:kali
Proposed by
Greg Armer
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tristan Seligmann | ||||
Approved revision: | 119 | ||||
Merged at revision: | 117 | ||||
Proposed branch: | lp:~wiqd/kali/ssl-support | ||||
Merge into: | lp:kali | ||||
To merge this branch: | bzr merge lp:~wiqd/kali/ssl-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tristan Seligmann | Approve | ||
Jeremy Thurgood | Needs Fixing | ||
Review via email: mp+2768@code.launchpad.net |
To post a comment you must log in.
"from OpenSSL import SSL" seems to be pointless.
I'd suggest moving the "from twisted.internet import ssl" to the rest of the imports, using an idiom like
try:
from twisted.internet import ssl
except ImportError:
ssl = None
This will also require changing the name of the parameter, to avoid a name collision.
Finally, ServicesFactory can be instantiated outside of the conditional, avoiding a little code duplication.