Revision: 8121 Author: russblau Date: 2010-04-22 15:54:55 +0000 (Thu, 22 Apr 2010)
Log Message: ----------- Qualify imports
Modified Paths: -------------- branches/rewrite/pywikibot/__init__.py
Modified: branches/rewrite/pywikibot/__init__.py =================================================================== --- branches/rewrite/pywikibot/__init__.py 2010-04-21 17:28:26 UTC (rev 8120) +++ branches/rewrite/pywikibot/__init__.py 2010-04-22 15:54:55 UTC (rev 8121) @@ -17,12 +17,16 @@ import threading from Queue import Queue
-import config2 as config -from bot import * -from exceptions import * -from textlib import * +# Use pywikibot. prefix for all in-package imports; this is to prevent +# confusion with similarly-named modules in version 1 framework, for users +# who want to continue using both
+from pywikibot import config2 as config +from pywikibot.bot import * +from pywikibot.exceptions import * +from pywikibot.textlib import *
+ class Timestamp(datetime.datetime): """Class for handling Mediawiki timestamps.
pywikipedia-svn@lists.wikimedia.org