Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/y/pywikibot-compat-HEAD/category.py   pywikibot-compat(Download)
                f = bz2.BZ2File(filename, 'r')
                pywikibot.output(u'Reading dump from %s'
                                 % config.shortpath(filename))
                databases = pickle.load(f)
                f.close()
        if self.catContentDB or self.superclassDB:
            pywikibot.output(u'Dumping to %s, please wait...'
                             % config.shortpath(filename))
            f = bz2.BZ2File(filename, 'w')
            databases = {
            else:
                pywikibot.output(u'Database is empty. %s removed'
                                 % config.shortpath(filename))