mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
Remove unused import fallback on the 'mock' library
This commit is contained in:
parent
efed7d8081
commit
3f5a18e8d0
@ -30,17 +30,10 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
from unittest import mock
|
||||||
from supybot import questions
|
from supybot import questions
|
||||||
from supybot.test import SupyTestCase
|
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
|
# so complicated construction because I want to
|
||||||
# gain the string 'y' instead of the character 'y'
|
# gain the string 'y' instead of the character 'y'
|
||||||
# the reason of usage this construction is to prove
|
# the reason of usage this construction is to prove
|
||||||
|
Loading…
Reference in New Issue
Block a user