Remove dead code
This commit is contained in:
parent
9d853cf190
commit
2f69aaa487
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
'''Representation of a peer server.'''
|
'''Representation of a peer server.'''
|
||||||
|
|
||||||
import re
|
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
|
|
||||||
from lib.util import cachedproperty
|
from lib.util import cachedproperty
|
||||||
@ -35,7 +34,6 @@ import lib.util as util
|
|||||||
class Peer(object):
|
class Peer(object):
|
||||||
|
|
||||||
# Protocol version
|
# Protocol version
|
||||||
VERSION_REGEX = re.compile('[0-9]+(\.[0-9]+)?$')
|
|
||||||
ATTRS = ('host', 'features',
|
ATTRS = ('host', 'features',
|
||||||
# metadata
|
# metadata
|
||||||
'source', 'ip_addr', 'good_ports',
|
'source', 'ip_addr', 'good_ports',
|
||||||
|
|||||||
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
'''Peer management.'''
|
'''Peer management.'''
|
||||||
|
|
||||||
import ast
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import random
|
import random
|
||||||
import socket
|
import socket
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user