view feedupdate.py @ 221:a383abe2e81a

update to python3
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 22 May 2014 05:10:51 +0200
parents 38d1898e7d82
children f07cf25224a4
line wrap: on
line source

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import BackendFactory
import logging

if __name__ == "__main__":
    logFormat = '%(asctime)s ' + logging.BASIC_FORMAT
    logging.basicConfig(format=logFormat, level=logging.DEBUG)
    backend = BackendFactory.createBackend()
    backend.updateAllFeeds()
    backend.expireFeedEntries()
    backend.dispose()