From d441b8740a536ae67749ec28f7521f3b8111b4ce Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 15 Jul 2013 09:02:00 +0000 Subject: [PATCH] GoodFrench: Fix Python 3 compatibility. --- GoodFrench/__init__.py | 1 + GoodFrench/plugin.py | 3 --- GoodFrench/test.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/GoodFrench/__init__.py b/GoodFrench/__init__.py index 0043f38..a24fa75 100644 --- a/GoodFrench/__init__.py +++ b/GoodFrench/__init__.py @@ -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! diff --git a/GoodFrench/plugin.py b/GoodFrench/plugin.py index 48a690e..5604362 100644 --- a/GoodFrench/plugin.py +++ b/GoodFrench/plugin.py @@ -29,9 +29,6 @@ ### -import config -reload(config) - import re import supybot.world as world import supybot.ircmsgs as ircmsgs diff --git a/GoodFrench/test.py b/GoodFrench/test.py index bbf5051..a1464db 100644 --- a/GoodFrench/test.py +++ b/GoodFrench/test.py @@ -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):