GoodFrench: Fix Python 3 compatibility.
parent
457c47dce3
commit
d441b8740a
|
@ -56,6 +56,7 @@ __url__ = '' # 'http://supybot.com/Members/yourname/GoodFrench/download'
|
|||
from . import config
|
||||
from . import plugin
|
||||
from imp import reload
|
||||
reload(config) # In case we're being reloaded.
|
||||
reload(plugin) # In case we're being reloaded.
|
||||
# Add more reloads here if you add third-party modules and want them to be
|
||||
# reloaded when this plugin is reloaded. Don't forget to import them as well!
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
|
||||
###
|
||||
|
||||
import config
|
||||
reload(config)
|
||||
|
||||
import re
|
||||
import supybot.world as world
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
|
|
|
@ -65,7 +65,6 @@ class GoodFrenchTestCase(ChannelPluginTestCase):
|
|||
try:
|
||||
self.assertRegexp("GoodFrench detect %s" % text, 'erreurs? : ')
|
||||
except AssertionError as e:
|
||||
print text
|
||||
raise e
|
||||
|
||||
def testMistakes(self):
|
||||
|
@ -80,7 +79,6 @@ class GoodFrenchTestCase(ChannelPluginTestCase):
|
|||
try:
|
||||
self.assertRegexp("GoodFrench detect %s" % text, 'correcte')
|
||||
except AssertionError as e:
|
||||
print text
|
||||
raise e
|
||||
|
||||
def testNotMistakes(self):
|
||||
|
|
Loading…
Reference in New Issue