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 config
|
||||||
from . import plugin
|
from . import plugin
|
||||||
from imp import reload
|
from imp import reload
|
||||||
|
reload(config) # In case we're being reloaded.
|
||||||
reload(plugin) # 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
|
# 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!
|
# 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 re
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
import supybot.ircmsgs as ircmsgs
|
import supybot.ircmsgs as ircmsgs
|
||||||
|
|
|
@ -65,7 +65,6 @@ class GoodFrenchTestCase(ChannelPluginTestCase):
|
||||||
try:
|
try:
|
||||||
self.assertRegexp("GoodFrench detect %s" % text, 'erreurs? : ')
|
self.assertRegexp("GoodFrench detect %s" % text, 'erreurs? : ')
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
print text
|
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
def testMistakes(self):
|
def testMistakes(self):
|
||||||
|
@ -80,7 +79,6 @@ class GoodFrenchTestCase(ChannelPluginTestCase):
|
||||||
try:
|
try:
|
||||||
self.assertRegexp("GoodFrench detect %s" % text, 'correcte')
|
self.assertRegexp("GoodFrench detect %s" % text, 'correcte')
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
print text
|
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
def testNotMistakes(self):
|
def testNotMistakes(self):
|
||||||
|
|
Loading…
Reference in New Issue