#!/usr/bin/python2.6 # -*- coding: iso-8859-15 -*- # $Id$ # $HeadURL$ """This module contains general functions for using the MediaWiki API. There is one very good Python wrapper implementation of the MediaWiki API: * wikitools http://code.google.com/p/python-wikitools/ Therefore this module doesn't need to have much content. """ def to_title(value): """Line 2237 of includes/Title.php says: $this->mTextform = str_replace( '_', ' ', $dbkey ); No not check for None because a missing title is an error""" return value.replace(u'_', u' ')