From 304ad1e72d9c11f4ce5995880fcd8056902c7f02 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 12 Feb 2017 11:26:31 +0000 Subject: [PATCH] [Lint] Add missing copyright header to files --- deluge/scripts/deluge_remote.py | 1 + deluge/tests/basetest.py | 7 +++++++ deluge/tests/daemon_base.py | 7 +++++++ deluge/tests/test_authmanager.py | 7 +++++++ deluge/tests/test_common.py | 7 +++++++ deluge/tests/test_component.py | 7 +++++++ deluge/tests/test_config.py | 5 +++++ deluge/tests/test_decorators.py | 7 +++++++ deluge/tests/test_error.py | 7 +++++++ deluge/tests/test_files_tab.py | 7 +++++++ deluge/tests/test_maketorrent.py | 7 +++++++ deluge/tests/test_torrent.py | 7 +++++++ deluge/tests/test_torrentmanager.py | 7 +++++++ deluge/tests/test_torrentview.py | 10 ++++++++++ deluge/tests/test_tracker_icons.py | 7 +++++++ deluge/tests/test_ui_console_fields.py | 5 +++++ deluge/tests/twisted/plugins/delugereporter.py | 7 +++++++ deluge/ui/console/modes/torrentlist/torrentview.py | 7 +++++++ deluge/ui/countries.py | 7 +++---- deluge/ui/languages.py | 7 +++---- 20 files changed, 125 insertions(+), 8 deletions(-) diff --git a/deluge/scripts/deluge_remote.py b/deluge/scripts/deluge_remote.py index d4cf46664..d68715d57 100644 --- a/deluge/scripts/deluge_remote.py +++ b/deluge/scripts/deluge_remote.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # # This software is in the public domain, furnished "as is", without technical # support, and with no warranty, express or implied, as to its usefulness for diff --git a/deluge/tests/basetest.py b/deluge/tests/basetest.py index 057d403f9..7070e6d0a 100644 --- a/deluge/tests/basetest.py +++ b/deluge/tests/basetest.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import warnings diff --git a/deluge/tests/daemon_base.py b/deluge/tests/daemon_base.py index 2208a5b22..28272b539 100644 --- a/deluge/tests/daemon_base.py +++ b/deluge/tests/daemon_base.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import print_function, unicode_literals import os.path diff --git a/deluge/tests/test_authmanager.py b/deluge/tests/test_authmanager.py index 5a21e5608..70f231082 100644 --- a/deluge/tests/test_authmanager.py +++ b/deluge/tests/test_authmanager.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import deluge.component as component diff --git a/deluge/tests/test_common.py b/deluge/tests/test_common.py index b420f8f16..ba5fbf4bb 100644 --- a/deluge/tests/test_common.py +++ b/deluge/tests/test_common.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import os diff --git a/deluge/tests/test_component.py b/deluge/tests/test_component.py index 5995e017b..10cc3b9b4 100644 --- a/deluge/tests/test_component.py +++ b/deluge/tests/test_component.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals from twisted.internet import defer, threads diff --git a/deluge/tests/test_config.py b/deluge/tests/test_config.py index 60c7e2f72..78bfd20b7 100644 --- a/deluge/tests/test_config.py +++ b/deluge/tests/test_config.py @@ -1,4 +1,9 @@ # -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# from __future__ import unicode_literals diff --git a/deluge/tests/test_decorators.py b/deluge/tests/test_decorators.py index 3a98ab2e0..7d4bd98c8 100644 --- a/deluge/tests/test_decorators.py +++ b/deluge/tests/test_decorators.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals from twisted.trial import unittest diff --git a/deluge/tests/test_error.py b/deluge/tests/test_error.py index 36fa4d633..6bbfa72cd 100644 --- a/deluge/tests/test_error.py +++ b/deluge/tests/test_error.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals from twisted.trial import unittest diff --git a/deluge/tests/test_files_tab.py b/deluge/tests/test_files_tab.py index 9080a1830..044aa8f1e 100644 --- a/deluge/tests/test_files_tab.py +++ b/deluge/tests/test_files_tab.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import print_function, unicode_literals import pytest diff --git a/deluge/tests/test_maketorrent.py b/deluge/tests/test_maketorrent.py index 1a61b3502..0e223896f 100644 --- a/deluge/tests/test_maketorrent.py +++ b/deluge/tests/test_maketorrent.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import os diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py index e777dd506..3dae04c22 100644 --- a/deluge/tests/test_torrent.py +++ b/deluge/tests/test_torrent.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import print_function, unicode_literals import base64 diff --git a/deluge/tests/test_torrentmanager.py b/deluge/tests/test_torrentmanager.py index 9ec55c405..48058259e 100644 --- a/deluge/tests/test_torrentmanager.py +++ b/deluge/tests/test_torrentmanager.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import base64 diff --git a/deluge/tests/test_torrentview.py b/deluge/tests/test_torrentview.py index ff3c7bc21..d6622c978 100644 --- a/deluge/tests/test_torrentview.py +++ b/deluge/tests/test_torrentview.py @@ -1,3 +1,13 @@ +# -*- coding: utf-8 -*- +# +# Copyright (C) 2014 Bro +# Copyright (C) 2014 Calum Lind +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import pytest diff --git a/deluge/tests/test_tracker_icons.py b/deluge/tests/test_tracker_icons.py index 8576cbf10..1817c7ce9 100644 --- a/deluge/tests/test_tracker_icons.py +++ b/deluge/tests/test_tracker_icons.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import pytest diff --git a/deluge/tests/test_ui_console_fields.py b/deluge/tests/test_ui_console_fields.py index c6bb4d788..05d7132ec 100644 --- a/deluge/tests/test_ui_console_fields.py +++ b/deluge/tests/test_ui_console_fields.py @@ -1,4 +1,9 @@ # -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# from __future__ import unicode_literals diff --git a/deluge/tests/twisted/plugins/delugereporter.py b/deluge/tests/twisted/plugins/delugereporter.py index f4c259f07..a1b1d04f9 100644 --- a/deluge/tests/twisted/plugins/delugereporter.py +++ b/deluge/tests/twisted/plugins/delugereporter.py @@ -1,4 +1,11 @@ #! /usr/bin/env python +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import os diff --git a/deluge/ui/console/modes/torrentlist/torrentview.py b/deluge/ui/console/modes/torrentlist/torrentview.py index 30c3f279d..98b18f1ec 100644 --- a/deluge/ui/console/modes/torrentlist/torrentview.py +++ b/deluge/ui/console/modes/torrentlist/torrentview.py @@ -1,3 +1,10 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with +# the additional special exception to link portions of this program with the OpenSSL library. +# See LICENSE for more details. +# + from __future__ import unicode_literals import logging diff --git a/deluge/ui/countries.py b/deluge/ui/countries.py index baf91b752..fe17da1a2 100644 --- a/deluge/ui/countries.py +++ b/deluge/ui/countries.py @@ -1,11 +1,10 @@ -from __future__ import unicode_literals - -# -# countries.py +# -*- coding: utf-8 -*- # # This file is public domain. # +from __future__ import unicode_literals + # ISO 3166-1 country names and codes COUNTRIES = { 'AF': _('Afghanistan'), diff --git a/deluge/ui/languages.py b/deluge/ui/languages.py index f41876ca9..ab2df02e7 100644 --- a/deluge/ui/languages.py +++ b/deluge/ui/languages.py @@ -1,11 +1,10 @@ -from __future__ import unicode_literals - -# -# languages.py +# -*- coding: utf-8 -*- # # This file is public domain. # +from __future__ import unicode_literals + # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us'