Remove unused import fallback on the 'mock' library

This commit is contained in:
Valentin Lorentz 2023-01-21 18:51:17 +01:00
parent efed7d8081
commit 3f5a18e8d0
1 changed files with 1 additions and 8 deletions

View File

@ -30,17 +30,10 @@
import sys
import unittest
from unittest import mock
from supybot import questions
from supybot.test import SupyTestCase
try:
from unittest import mock # Python 3.3+
except ImportError:
try:
import mock # Everything else, an external 'mock' library
except ImportError:
mock = None
# so complicated construction because I want to
# gain the string 'y' instead of the character 'y'
# the reason of usage this construction is to prove