GoodFrench: Fix Python 3 compatibility.

master
Valentin Lorentz 2013-07-15 09:02:00 +00:00
parent 457c47dce3
commit d441b8740a
3 changed files with 1 additions and 5 deletions

View File

@ -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!

View File

@ -29,9 +29,6 @@
###
import config
reload(config)
import re
import supybot.world as world
import supybot.ircmsgs as ircmsgs

View File

@ -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):