From 529ed097029157854421659e65236858a393aab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?GOLDERWEB=20=E2=80=93=20Jonathan=20Golder?= Date: Fri, 11 Sep 2015 16:42:12 +0200 Subject: [PATCH] Use pywikibot.output instead of print --- red_page.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/red_page.py b/red_page.py index 6dfb242..d2452e0 100644 --- a/red_page.py +++ b/red_page.py @@ -1,9 +1,12 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +import pywikibot + from mysql_red import MYSQL_RED_PAGE from red_fam import RED_FAM_PARSER + class RED_PAGE: """Class for handling redundance discussion pages and archives""" @@ -99,6 +102,7 @@ class RED_PAGE: last_fam = i # Save heading fam_heading = line + pywikibot.output( fam_heading ) # Defined (re)initialisation of dates beginning = None