mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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 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
|
||||
|
Loading…
Reference in New Issue
Block a user