Skip to content

Commit

Permalink
PEP8: Avoid wildcard imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Nov 25, 2024
1 parent 687e211 commit ec966c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/pesieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import json
import traceback

from lib.lokilogger import *
from lib.helpers import runProcess

class PESieve(object):
Expand Down
3 changes: 2 additions & 1 deletion loki-upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import io
import os
import argparse
import sys
import traceback
from sys import platform as _platform
try:
Expand All @@ -29,7 +30,7 @@
platform = "linux" # crazy guess


from lib.lokilogger import *
from lib.lokilogger import LokiLogger

# Platform
platform = ""
Expand Down
22 changes: 20 additions & 2 deletions loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import sys
import os
import argparse
import codecs
import logging
import traceback
import yara # install 'yara-python' module not the outdated 'yara' module
import re
Expand All @@ -40,10 +42,26 @@
from bisect import bisect_left

# LOKI Modules
from lib.lokilogger import *
from lib.lokilogger import LokiLogger, getSyslogTimestamp
from lib.levenshtein import LevCheck

from lib.helpers import *
from lib.helpers import (
generateHashes,
get_file_type,
getAgeString,
getExcludedMountpoints,
getHostname,
getPlatformFull,
ip_in_net,
is_cidr,
is_ip,
printProgress,
removeNonAsciiDrop,
replaceEnvVars,
setNice,
transformOS
)

from lib.pesieve import PESieve
from lib.doublepulsar import DoublePulsar
from lib.vuln_checker import VulnChecker
Expand Down

0 comments on commit ec966c5

Please sign in to comment.