From f5e613134b5d5d07211ab66be0e21335dce9e1c1 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 12 Jul 2019 12:29:05 -0500 Subject: [PATCH] removed unnecessary imports in onionrpeers --- onionr/onionrpeers/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/onionr/onionrpeers/__init__.py b/onionr/onionrpeers/__init__.py index 3d3f3f38..17b571c8 100755 --- a/onionr/onionrpeers/__init__.py +++ b/onionr/onionrpeers/__init__.py @@ -17,13 +17,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ''' -import sqlite3 -import core, config, logger -from onionrutils import epoch from . import scoresortedpeerlist, peercleanup get_score_sorted_peer_list = scoresortedpeerlist.get_score_sorted_peer_list peer_cleanup = peercleanup.peer_cleanup -config.reload() class PeerProfiles: ''' @@ -37,8 +33,6 @@ class PeerProfiles: self.failure = 0 self.connectTime = None - if not isinstance(coreInst, core.Core): - raise TypeError("coreInst must be a type of core.Core") self.coreInst = coreInst self.loadScore()