mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
Fix E402
This commit is contained in:
@ -39,9 +39,6 @@ import sys
|
|||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
from twisted._version import __version__
|
from twisted._version import __version__
|
||||||
if __version__.major < 17:
|
|
||||||
raise ImportError("Your version of Twisted is too old. Please ensure your virtual environment is set up correctly.")
|
|
||||||
|
|
||||||
from twisted.python import log, usage
|
from twisted.python import log, usage
|
||||||
from twisted.plugin import IPlugin
|
from twisted.plugin import IPlugin
|
||||||
from twisted.application.service import IServiceMaker
|
from twisted.application.service import IServiceMaker
|
||||||
@ -60,6 +57,13 @@ import cowrie.core.checkers
|
|||||||
import cowrie.telnet.transport
|
import cowrie.telnet.transport
|
||||||
import cowrie.ssh.factory
|
import cowrie.ssh.factory
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __version__.major < 17:
|
||||||
|
raise ImportError("Your version of Twisted is too old. Please ensure your virtual environment is set up correctly.")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Options(usage.Options):
|
class Options(usage.Options):
|
||||||
"""
|
"""
|
||||||
This defines commandline options and flags
|
This defines commandline options and flags
|
||||||
|
|||||||
Reference in New Issue
Block a user