From 9f059b91ba30e0d0a674f1384ca0669c1912dd5b Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Fri, 12 Jun 2015 22:22:16 +0200 Subject: [PATCH] Add missing future imports for print_function There are some places where `print()` is used to print a blank line. However, unless the future feature `print_function` is imported, that will print `()` in Python 2. --- plugins/Math/test.py | 2 ++ plugins/News/test.py | 2 ++ scripts/supybot-plugin-create | 2 ++ scripts/supybot-wizard | 2 ++ 4 files changed, 8 insertions(+) diff --git a/plugins/Math/test.py b/plugins/Math/test.py index bce6b77f9..a19491f7d 100644 --- a/plugins/Math/test.py +++ b/plugins/Math/test.py @@ -28,6 +28,8 @@ # POSSIBILITY OF SUCH DAMAGE. ### +from __future__ import print_function + from supybot.test import * class MathTestCase(PluginTestCase): diff --git a/plugins/News/test.py b/plugins/News/test.py index 7904f6582..3d6b5b4ea 100644 --- a/plugins/News/test.py +++ b/plugins/News/test.py @@ -27,6 +27,8 @@ # POSSIBILITY OF SUCH DAMAGE. ### +from __future__ import print_function + import time from supybot.test import * diff --git a/scripts/supybot-plugin-create b/scripts/supybot-plugin-create index 34143e7d5..e76f9661e 100644 --- a/scripts/supybot-plugin-create +++ b/scripts/supybot-plugin-create @@ -30,6 +30,8 @@ # POSSIBILITY OF SUCH DAMAGE. ### +from __future__ import print_function + import supybot import os diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index 13b5494c1..7db6996ff 100644 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -30,6 +30,8 @@ # POSSIBILITY OF SUCH DAMAGE. ### +from __future__ import print_function + import os import sys