Revision: 4657 Author: rotem Date: 2007-12-09 13:46:39 +0000 (Sun, 09 Dec 2007)
Log Message: ----------- Cleaner code.
Modified Paths: -------------- trunk/pywikipedia/family.py
Modified: trunk/pywikipedia/family.py =================================================================== --- trunk/pywikipedia/family.py 2007-12-09 13:28:18 UTC (rev 4656) +++ trunk/pywikipedia/family.py 2007-12-09 13:46:39 UTC (rev 4657) @@ -2403,12 +2403,12 @@ raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
if all: - if type(v) == type([]): + if type(v) is list: return tuple(v) else: return (v, ) else: - if type(v) == type([]): + if type(v) is list: return v[0] else: return v
pywikipedia-l@lists.wikimedia.org