Revision: 6549
Author: nicdumz
Date: 2009-03-24 02:58:56 +0000 (Tue, 24 Mar 2009)
Log Message:
-----------
Adding authors, license information.
Using a single header format for all scripts
Modified Paths:
--------------
branches/rewrite/scripts/category.py
branches/rewrite/scripts/category_redirect.py
branches/rewrite/scripts/editarticle.py
branches/rewrite/scripts/fixes.py
branches/rewrite/scripts/replace.py
branches/rewrite/scripts/solve_disambiguation.py
branches/rewrite/scripts/touch.py
Modified: branches/rewrite/scripts/category.py
===================================================================
--- branches/rewrite/scripts/category.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/category.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -1,6 +1,5 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-
"""
Scripts to manage categories.
@@ -69,6 +68,7 @@
"""
+#
# (C) Rob W.W. Hooft, 2004
# (C) Daniel Herding, 2004
# (C) Anreas J Schwab, 2007
@@ -78,6 +78,7 @@
#
# Distributed under the terms of the MIT license.
#
+
import os, re, sys, pickle, bz2
import pywikibot
from pywikibot import catlib, config, pagegenerators
Modified: branches/rewrite/scripts/category_redirect.py
===================================================================
--- branches/rewrite/scripts/category_redirect.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/category_redirect.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -12,7 +12,14 @@
are taken into account.
"""
+
+#
+# (C) Pywikipedia team, 2008-2009
+#
__version__ = '$Id$'
+#
+# Distributed under the terms of the MIT license.
+#
import pywikibot
from pywikibot import pagegenerators
Modified: branches/rewrite/scripts/editarticle.py
===================================================================
--- branches/rewrite/scripts/editarticle.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/editarticle.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -1,10 +1,17 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+"""
+Edit a Wikipedia article with your favourite editor.
+"""
-# Edit a Wikipedia article with your favourite editor.
#
# (C) Gerrit Holl 2004
+# (C) Pywikipedia team, 2004-2009
+#
+__version__ = "$Id$"
+#
# Distributed under the terms of the MIT license.
+#
# Version 0.4.
#
@@ -15,7 +22,6 @@
# - ...
__metaclass__ = type
-__version__ = "$Id$"
import sys
import os
import string
Modified: branches/rewrite/scripts/fixes.py
===================================================================
--- branches/rewrite/scripts/fixes.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/fixes.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -1,6 +1,16 @@
# -*- coding: utf-8 -*-
-""" File containing all standard fixes """
+"""
+File containing all standard fixes
+
+"""
+
+#
+# (C) Pywikipedia team, 2008-2009
+#
__version__ = '$Id$'
+#
+# Distributed under the terms of the MIT license.
+#
help = """
* HTML - Convert HTML tags to wiki syntax, and
Modified: branches/rewrite/scripts/replace.py
===================================================================
--- branches/rewrite/scripts/replace.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/replace.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -107,8 +107,10 @@
python replace.py referer referrer -file:typos.txt -excepttext:HTTP
"""
#
-# (C) Daniel Herding & the Pywikipediabot Team, 2004-2009
+# (C) Daniel Herding & the Pywikipedia team, 2004-2009
#
+__version__='$Id$'
+#
# Distributed under the terms of the MIT license.
#
@@ -129,7 +131,6 @@
'&fixes-help;': fixes.help,
}
-__version__='$Id$'
# Summary messages in different languages
# NOTE: Predefined replacement tasks might use their own dictionary, see 'fixes'
Modified: branches/rewrite/scripts/solve_disambiguation.py
===================================================================
--- branches/rewrite/scripts/solve_disambiguation.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/solve_disambiguation.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -62,18 +62,22 @@
To complete a move of a page, one can use:
python solve_disambiguation.py -just -pos:New_Name Old_Name
+
"""
+
#
# (C) Rob W.W. Hooft, 2003
# (C) Daniel Herding, 2004
# (C) Andre Engels, 2003-2004
# (C) WikiWichtel, 2004
-# (C) Pywikipediabot team, 2003-2009
+# (C) Pywikipedia team, 2003-2009
#
+__version__='$Id$'
+#
# Distributed under the terms of the MIT license.
#
-__version__='$Id$'
-#
+
+
# Standard library imports
import re, sys, codecs
Modified: branches/rewrite/scripts/touch.py
===================================================================
--- branches/rewrite/scripts/touch.py 2009-03-24 02:48:53 UTC (rev 6548)
+++ branches/rewrite/scripts/touch.py 2009-03-24 02:58:56 UTC (rev 6549)
@@ -16,7 +16,13 @@
will only touch a single page.
"""
+#
+# (C) Pywikipedia team
+#
__version__='$Id$'
+#
+# Distributed under the terms of the MIT license.
+#
import pywikibot
from pywikibot import pagegenerators, catlib, config