# HG changeset patch # User Dirk Olmes # Date 1398569614 -7200 # Node ID bb3c851b18b199df5596ae69515b737541ddda70 # Parent 9bc4b2465435d0eaf484f89802190cd6a3f93148 add source file endcoding header diff -r 9bc4b2465435 -r bb3c851b18b1 AddFeed.py --- a/AddFeed.py Sun Apr 27 05:19:45 2014 +0200 +++ b/AddFeed.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4 import QtGui from Ui_AddFeed import Ui_AddFeed import logging diff -r 9bc4b2465435 -r bb3c851b18b1 BackendFactory.py --- a/BackendFactory.py Sun Apr 27 05:19:45 2014 +0200 +++ b/BackendFactory.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- import argparse SQLALCHEMY_BACKEND = "sqlalchemy" diff -r 9bc4b2465435 -r bb3c851b18b1 DisplayModel.py --- a/DisplayModel.py Sun Apr 27 05:19:45 2014 +0200 +++ b/DisplayModel.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4.QtCore import QAbstractListModel, QModelIndex, QVariant, Qt class DisplayModel(QAbstractListModel): diff -r 9bc4b2465435 -r bb3c851b18b1 FeedEntryItemDelegate.py --- a/FeedEntryItemDelegate.py Sun Apr 27 05:19:45 2014 +0200 +++ b/FeedEntryItemDelegate.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4 import QtGui from PyQt4.QtGui import QFont diff -r 9bc4b2465435 -r bb3c851b18b1 FeedEntryTableModel.py --- a/FeedEntryTableModel.py Sun Apr 27 05:19:45 2014 +0200 +++ b/FeedEntryTableModel.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4.QtCore import QAbstractTableModel, QVariant, Qt class TableModel(QAbstractTableModel): diff -r 9bc4b2465435 -r bb3c851b18b1 FeedSettings.py --- a/FeedSettings.py Sun Apr 27 05:19:45 2014 +0200 +++ b/FeedSettings.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4 import QtGui from Ui_FeedSettings import Ui_FeedSettings diff -r 9bc4b2465435 -r bb3c851b18b1 MainWindow.py --- a/MainWindow.py Sun Apr 27 05:19:45 2014 +0200 +++ b/MainWindow.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from AddFeed import AddFeed from DisplayModel import DisplayModel from FeedEntryItemDelegate import FeedEntryItemDelegate diff -r 9bc4b2465435 -r bb3c851b18b1 OpmlImport.py --- a/OpmlImport.py Sun Apr 27 05:19:45 2014 +0200 +++ b/OpmlImport.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from Feed import Feed from xml.dom.minidom import parse diff -r 9bc4b2465435 -r bb3c851b18b1 PreferencesDialog.py --- a/PreferencesDialog.py Sun Apr 27 05:19:45 2014 +0200 +++ b/PreferencesDialog.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from PyQt4 import QtGui from Ui_Preferences import Ui_Preferences diff -r 9bc4b2465435 -r bb3c851b18b1 backend/AbstractBackend.py --- a/backend/AbstractBackend.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/AbstractBackend.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from datetime import datetime, timedelta def calculateExpireDate(preferences): diff -r 9bc4b2465435 -r bb3c851b18b1 backend/AbstractFeedUpdater.py --- a/backend/AbstractFeedUpdater.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/AbstractFeedUpdater.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from datetime import datetime from urllib2 import ProxyHandler import AbstractBackend diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/CouchDb.py --- a/backend/couchdb/CouchDb.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/CouchDb.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from argparse import ArgumentParser database_url = None diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/CouchDbBackend.py --- a/backend/couchdb/CouchDbBackend.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/CouchDbBackend.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from FeedUpdater import FeedUpdater from Preferences import Preferences from backend.AbstractBackend import AbstractBackend diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/Feed.py --- a/backend/couchdb/Feed.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/Feed.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from couchdb.mapping import BooleanField, DateTimeField, Document, IntegerField, TextField from datetime import datetime, timedelta import CouchDb diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/FeedEntry.py --- a/backend/couchdb/FeedEntry.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/FeedEntry.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from backend.couchdb.ListDateTimeField import ListDateTimeField from couchdb.mapping import BooleanField, Document, TextField from datetime import datetime diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/FeedUpdater.py --- a/backend/couchdb/FeedUpdater.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/FeedUpdater.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from FeedEntry import FeedEntry from backend.AbstractFeedUpdater import AbstractFeedUpdater import logging diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/ListDateTimeField.py --- a/backend/couchdb/ListDateTimeField.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/ListDateTimeField.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from couchdb.mapping import Field from datetime import datetime diff -r 9bc4b2465435 -r bb3c851b18b1 backend/couchdb/Preferences.py --- a/backend/couchdb/Preferences.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/couchdb/Preferences.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- import CouchDb DAYS_TO_KEEP_FEED_ENTRIES = "daysToKeepFeedEntries" diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/Database.py --- a/backend/sqlalchemy/Database.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/Database.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from sqlalchemy.engine import create_engine from sqlalchemy.orm import sessionmaker import Mapping diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/Feed.py --- a/backend/sqlalchemy/Feed.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/Feed.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from datetime import datetime, timedelta import FeedEntry diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/FeedEntry.py --- a/backend/sqlalchemy/FeedEntry.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/FeedEntry.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from datetime import datetime def compareByUpdateDate(first, second): diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/FeedUpdater.py --- a/backend/sqlalchemy/FeedUpdater.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/FeedUpdater.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from Feed import Feed from FeedEntry import FeedEntry from backend.AbstractFeedUpdater import AbstractFeedUpdater, FeedUpdateException diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/Mapping.py --- a/backend/sqlalchemy/Mapping.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/Mapping.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from Feed import Feed from FeedEntry import FeedEntry from Preference import Preference diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/Preference.py --- a/backend/sqlalchemy/Preference.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/Preference.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- class Preference(object): @staticmethod def forKey(key, session): diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/Preferences.py --- a/backend/sqlalchemy/Preferences.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/Preferences.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from Preference import Preference DAYS_TO_KEEP_FEED_ENTRIES = "DAYS_TO_KEEP_FEED_ENTRIES" diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/SqlAlchemyBackend.py --- a/backend/sqlalchemy/SqlAlchemyBackend.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/SqlAlchemyBackend.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from Feed import Feed from FeedEntry import FeedEntry from FeedUpdater import FeedUpdater diff -r 9bc4b2465435 -r bb3c851b18b1 backend/sqlalchemy/util.py --- a/backend/sqlalchemy/util.py Sun Apr 27 05:19:45 2014 +0200 +++ b/backend/sqlalchemy/util.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- import sys def databaseLoggingEnabled(): diff -r 9bc4b2465435 -r bb3c851b18b1 feedupdate.py --- a/feedupdate.py Sun Apr 27 05:19:45 2014 +0200 +++ b/feedupdate.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# -*- coding: utf-8 -*- import BackendFactory import logging diff -r 9bc4b2465435 -r bb3c851b18b1 feedworm.py --- a/feedworm.py Sun Apr 27 05:19:45 2014 +0200 +++ b/feedworm.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from MainWindow import MainWindow from PyQt4 import QtGui from PyQt4.QtNetwork import QNetworkProxy diff -r 9bc4b2465435 -r bb3c851b18b1 prettyprint.py --- a/prettyprint.py Sun Apr 27 05:19:45 2014 +0200 +++ b/prettyprint.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- import sys newlineAfter = [ '{', '[', ',' ] @@ -47,4 +47,4 @@ filename = sys.argv[1] with open(filename) as file: - prettyPrint(file) \ No newline at end of file + prettyPrint(file) diff -r 9bc4b2465435 -r bb3c851b18b1 tests/FeedUpdaterTests.py --- a/tests/FeedUpdaterTests.py Sun Apr 27 05:19:45 2014 +0200 +++ b/tests/FeedUpdaterTests.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- import unittest from Feed import Feed from FeedUpdater import FeedUpdater @@ -21,4 +21,4 @@ if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main() diff -r 9bc4b2465435 -r bb3c851b18b1 tests/couchdb/FeedTests.py --- a/tests/couchdb/FeedTests.py Sun Apr 27 05:19:45 2014 +0200 +++ b/tests/couchdb/FeedTests.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from backend.couchdb.Feed import Feed from couchdb.client import Server import unittest @@ -34,4 +34,4 @@ if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main() diff -r 9bc4b2465435 -r bb3c851b18b1 tests/couchdb/ListDateTimeFieldTests.py --- a/tests/couchdb/ListDateTimeFieldTests.py Sun Apr 27 05:19:45 2014 +0200 +++ b/tests/couchdb/ListDateTimeFieldTests.py Sun Apr 27 05:33:34 2014 +0200 @@ -1,4 +1,4 @@ - +# -*- coding: utf-8 -*- from backend.couchdb.ListDateTimeField import ListDateTimeField from couchdb import Server from couchdb.http import ResourceNotFound @@ -61,4 +61,4 @@ if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main()