Skip to content

Commit 1a4b8cf

Browse files
[FIX] Rename lib files in bots
Renaming non-loadable bot files, so it wont get loaded by the dynamic bots list. Signed-off-by: Sebastian Waldbauer <[email protected]>
1 parent fe88ba0 commit 1a4b8cf

File tree

15 files changed

+11
-9
lines changed

15 files changed

+11
-9
lines changed

intelmq/bots/collectors/github_api/collector_github_contents_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import re
1313

1414
from intelmq.lib.exceptions import InvalidArgument
15-
from intelmq.bots.collectors.github_api.collector_github_api import GithubAPICollectorBot
15+
from intelmq.bots.collectors.github_api._collector_github_api import GithubAPICollectorBot
1616

1717
try:
1818
import requests
File renamed without changes.

intelmq/bots/collectors/mail/collector_mail_attach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from intelmq.lib.utils import unzip
1111
from intelmq.lib.exceptions import InvalidArgument
1212

13-
from .lib import MailCollectorBot
13+
from ._lib import MailCollectorBot
1414

1515

1616
class MailAttachCollectorBot(MailCollectorBot):

intelmq/bots/collectors/mail/collector_mail_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
from typing import Union, Iterable
66

7-
from .lib import MailCollectorBot
7+
from ._lib import MailCollectorBot
88

99

1010
class MailBodyCollectorBot(MailCollectorBot):

intelmq/bots/collectors/mail/collector_mail_url.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from intelmq.lib.splitreports import generate_reports
99
from intelmq.lib.utils import create_request_session, file_name_from_response
1010

11-
from .lib import MailCollectorBot
11+
from ._lib import MailCollectorBot
1212
from intelmq.lib.exceptions import MissingDependencyError
1313

1414
try:
File renamed without changes.

intelmq/bots/experts/abusix/expert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
RIPE abuse contacts resolving through DNS TXT queries
55
'''
66

7-
from intelmq.bots.experts.abusix.lib import Abusix
87
from intelmq.lib.bot import Bot
98

9+
from ._lib import Abusix
10+
1011
try:
1112
import querycontacts
1213
except ImportError:
File renamed without changes.

intelmq/bots/experts/cymru_whois/expert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# -*- coding: utf-8 -*-
22
import json
33

4-
from intelmq.bots.experts.cymru_whois.lib import Cymru
54
from intelmq.lib.bot import Bot
65
from intelmq.lib.cache import Cache
76
from intelmq.lib.harmonization import IPAddress
87

8+
from ._lib import Cymru
9+
910
CACHE_KEY = "%d_%s"
1011

1112

0 commit comments

Comments
 (0)