Skip to content

Commit

Permalink
Update headers and isort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cas-- committed Sep 23, 2014
1 parent 966f10b commit f2d81ff
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 123 deletions.
23 changes: 9 additions & 14 deletions deluge/metafile.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
# Taken from http://download.bittorrent.com/dl/BitTorrent-5.3-GPL.tar.gz
# -*- coding: utf-8 -*-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Original file from BitTorrent-5.3-GPL.tar.gz
# Copyright (C) Bram Cohen
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Modifications for use in Deluge:
# Copyright (C) 2007 Andrew Resch <[email protected]>
#
# 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

# Written by Bram Cohen
# Modifications for use in Deluge by Andrew Resch 2008

import logging
import os.path
Expand Down
32 changes: 4 additions & 28 deletions deluge/plugins/Execute/setup.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
#
# setup.py
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009 Damien Churchill <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, write to:
# The Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1301, USA.
#
# In addition, as a special exception, the copyright holders give
# permission to link the code of portions of this program with the OpenSSL
# library.
# You must obey the GNU General Public License in all respects for all of
# the code used other than OpenSSL. If you modify file(s) with this
# exception, you may extend this exception to your version of the file(s),
# but you are not obligated to do so. If you do not wish to do so, delete
# this exception statement from your version. If you delete this exception
# statement from all source files in the program, then also delete it here.
#
# 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 setuptools import find_packages, setup
Expand Down
3 changes: 2 additions & 1 deletion deluge/plugins/Extractor/deluge/plugins/extractor/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

import logging

from .common import get_resource
from deluge.plugins.pluginbase import WebPluginBase

from .common import get_resource

log = logging.getLogger(__name__)


Expand Down
32 changes: 4 additions & 28 deletions deluge/plugins/Label/setup.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
# setup.py
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 Martijn Voncken <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
# 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.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, write to:
# The Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1301, USA.
#
# In addition, as a special exception, the copyright holders give
# permission to link the code of portions of this program with the OpenSSL
# library.
# You must obey the GNU General Public License in all respects for all of
# the code used other than OpenSSL. If you modify file(s) with this
# exception, you may extend this exception to your version of the file(s),
# but you are not obligated to do so. If you do not wish to do so, delete
# this exception statement from your version. If you delete this exception
# statement from all source files in the program, then also delete it here.
#
#


from setuptools import find_packages, setup

Expand Down
31 changes: 5 additions & 26 deletions deluge/scripts/create_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,31 +320,10 @@ def disable(self):
Copyright:
(C) %(author_name)s %(current_year)s <%(author_email)s>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, write to:
The Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA.
In addition, as a special exception, the copyright holders give
permission to link the code of portions of this program with the OpenSSL
library.
You must obey the GNU General Public License in all respects for all of
the code used other than OpenSSL. If you modify file(s) with this
exception, you may extend this exception to your version of the file(s),
but you are not obligated to do so. If you do not wish to do so, delete
this exception statement from your version. If you delete this exception
statement from all source files in the program, then also delete it here.
This file is part of %(name)s 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.
*/
%(name)sPlugin = Ext.extend(Deluge.Plugin, {
Expand Down Expand Up @@ -377,7 +356,7 @@ def disable(self):
# Copyright (C) 2009 Damien Churchill <[email protected]>
# Copyright (C) 2010 Pedro Algarvio <[email protected]>
#
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# This file is part of %(name)s 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.
#
Expand Down
16 changes: 12 additions & 4 deletions gen_web_gettext.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/usr/bin/python
"""
Script to go through the javascript files and dynamically generate gettext.js
"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2012 Damien Churchill <[email protected]>
#
# 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.
#

"""Script to parse javascript files for translation strings and generate gettext.js"""

import os
import re

Expand Down
11 changes: 10 additions & 1 deletion generate_pot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This script creates the deluge.pot template file for translators
# Copyright (C) 2011-2013 Calum Lind <[email protected]>
# Copyright (C) 2009 Andrew Resch <[email protected]>
#
# 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.
#

"""Parses Python and Javascript code for translation strings to create the 'deluge.pot' template for translators"""

import os
import re
from datetime import datetime
Expand Down
10 changes: 10 additions & 0 deletions minify_web_js.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Calum Lind <[email protected]>
# Copyright (C) 2010 Damien Churchill <[email protected]>
#
# 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.
#

import fileinput
import fnmatch
import os
Expand Down
6 changes: 3 additions & 3 deletions msgfmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
Display version information and exit.
"""

import sys
import os
import array
import getopt
import os
import struct
import array
import sys

__version__ = "1.1"

Expand Down
23 changes: 5 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
#!/usr/bin/env python
#
# setup.py
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Andrew Resch <[email protected]>
# 2009 Damien Churchill <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Copyright (C) 2009 Damien Churchill <[email protected]>
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, write to:
# The Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1301, USA.
# 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.
#

import glob
Expand Down

0 comments on commit f2d81ff

Please sign in to comment.