Skip to content

Commit

Permalink
tls: Clean up module
Browse files Browse the repository at this point in the history
 - Remove unused debug code
 - Remove unused imports
  • Loading branch information
Synss committed Oct 27, 2018
1 parent 5028fca commit 71d37c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions mbedtls/tls.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ __author__ = "Mathias Laurin"
__copyright__ = "Copyright 2018, Mathias Laurin"
__license__ = "MIT License"

cdef int __DEBUG = 0
cdef int __DEBUG_ALL = 0

from libc.stdlib cimport malloc, free

cimport mbedtls._net as _net
Expand All @@ -15,9 +12,6 @@ cimport mbedtls.pk as _pk
cimport mbedtls.tls as _tls
cimport mbedtls.x509 as _x509

if __DEBUG | __DEBUG_ALL:
from binascii import hexlify

import socket as _socket
from collections import namedtuple
try:
Expand All @@ -31,7 +25,6 @@ except ImportError:
# Python 2.7
from contextlib2 import suppress
from enum import Enum, IntEnum
from ipaddress import ip_address
from itertools import tee

import certifi
Expand Down
1 change: 0 additions & 1 deletion requirements-27.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
contextlib2==0.5.5
enum34==1.1.6
pathlib2==2.3.2
py2-ipaddress==3.4.1

0 comments on commit 71d37c9

Please sign in to comment.